Acceptance criteria are fixed in advance — they state how the result will be verified: before development begins, the customer and the team agree what counts as “done” for a particular story or feature. The work is later accepted against these same conditions, and the tests are written from them.
What they look like
- concrete and testable: not “the site is fast”, but “a page loads in no more than two seconds with ten thousand users”;
- known to everyone before the work starts: the product owner writes them together with the team before the story enters a sprint;
- phrased from the user’s point of view or as a scenario of how the system behaves — so they can be checked manually or by an automated test.
The Given — When — Then format
A popular way to write criteria is a three-step scenario: Given describes the initial state of the system, When the user’s action or an event, and Then the observable result. The scenario is clear to the customer, the developers and the testers alike, and in the Gherkin notation the same scenario runs as an automated test in Cucumber and similar tools.
Given a shopper has added an item to the cartWhen they apply the promo code SUMMER10Then the amount due decreases by 10%Acceptance criteria and the Definition of Done
Each story has its own acceptance criteria: they describe a specific feature. The Definition of Done is common to the whole team and lists what must be done for any piece of work: the code is written, the tests pass, the documentation is updated. A story is considered done when both the common criteria and its own acceptance criteria are met.
Sources
the term is written from these pagesVerified 9 Nov