Acceptance criteria
Acceptance criteria are the specific, testable conditions that a feature or user story must meet before it is accepted as complete. They are often written in the Given, When, Then format and form the basis of test cases and user acceptance testing.
What it is
Acceptance criteria are the conditions under which a piece of work counts as complete and fit for release. They belong to one item, such as a user story or a feature, and each condition must be specific enough to be tested with a clear pass or fail.
The conditions can be written in plain language, as models such as state diagrams, or as examples. A common structure is Given, When, Then:
- Given. The starting situation, for example the state of the data or the user.
- When. The action taken.
- Then. The observable result that confirms the behaviour.
A user story is a short placeholder for a conversation, not a full requirement. The criteria are the confirmation: they record what the product owner and the team agreed the story must do. They are usually agreed before development starts and become the basis of the test cases and of the final user acceptance testing.
Why it matters
Without criteria, a story is complete when the developer thinks it is. The product owner may expect something different, and the dispute appears at acceptance, when changes are costly.
Criteria give the team a shared target before work starts. They give testers a direct source of test cases and give the product owner a checklist for accepting or rejecting the item.
Worked example
Illustrative numbers. The story reads: as a payments operations analyst, I want to see rejected payments in a repair queue, so that I can correct them.
Criteria:
- Given a payment rejected by a clearing system, when the analyst opens the repair queue, then the payment appears with its reject reason.
- Given three rejected payments, when the queue is displayed, then the oldest appears first.
- Given a payment that has been repaired, when the queue is refreshed, then it no longer appears.
Tester planning: three criteria give three positive test cases. Criterion 3 also needs a negative case, for a payment that has not been repaired and must stay in the queue. That makes four test cases. The story is accepted only when all four pass.
How to read it
A good criterion allows only one reading and one outcome. A statement such as “the screen works correctly” is not testable. A statement with an observable result and a stated condition is.
Assumptions
- The product owner is available to agree the criteria and to accept the result.
- Criteria describe behaviour that can be observed from outside, not how the code is built.
- Each criterion belongs to one item. Rules that apply to every item belong in the definition of done.
Who uses it
- Product owners agree the criteria with the team and accept or reject the item against them.
- Business analysts draw out the conditions from business users and write them in testable form.
- Project managers track how many items have met their criteria as a measure of progress.
Common confusions
- Acceptance criteria are not the definition of done. The definition of done is a checklist for every item and the whole increment. Criteria are specific to one item.
- Criteria are not a requirements specification. They confirm a story. They do not replace the wider requirements.
- Vague wording is the usual failure. Phrases without an observable result cannot be tested.
- Scrum does not require them. The Scrum framework treats them as a complementary practice.