Skip to content
Agile & Delivery

Acceptance Criteria

Definition

Acceptance criteria are the specific conditions a user story must meet to be accepted, often written as Given/When/Then scenarios, which also guide testing.

Diagram

Story: as a shopper, I want to use a discount code at checkout.

Scenario: Applying a valid code

Givena basket worth 40 and the code SPRING10

Whenthe shopper applies the code

Thenthe total drops to 36 and the code is shown as applied

Scenario: Applying an expired code

Giventhe code WINTER10, which expired yesterday

Whenthe shopper applies the code

Thenthe total stays the same and the message says the code has expired

Given sets up the situation, When is the one action, and Then is the result anyone can check. Write the unhappy paths too: they are where most bugs and arguments come from. Scenarios in this form can also become automated tests word for word.

Worked example