Short answer
You test requirements by asking about edge cases, errors and data before anyone writes code. The simplest way: the tester reviews every user story during planning, asks 10-12 standard questions and adds the missing acceptance criteria in “Given… when… then…” format. Short meeting formats help: three amigos (product owner, developer, tester, 15-30 minutes per story) or example mapping (25 minutes, rules and examples). A question during planning takes a minute; the same gap found in production costs a fix and a new release.
12 questions for every user story
- Who exactly is the user? Are there different roles?
- What happens with invalid data? What message?
- What if the user doesn’t have permission?
- What does the empty state look like: an empty list, a new user?
- What about a very large amount of data: 10,000 items, long names?
- What about data that already exists? Does it need migrating?
- What are the limits: numbers, lengths, amounts?
- What if an external service doesn’t respond?
- What if two users do the same thing at once?
- What does it look like on a phone?
- Does the change affect other features: reports, emails, exports?
- How will we know the feature works in production?
Not every question fits every story. It’s enough for 2-3 of them to catch a gap.
Example: before and after review
Before:
As a customer I want to add a discount code in the cart so that I pay less.
After review, acceptance criteria:
- Given an active -10% code, when I enter it in the cart, then the total drops by 10% and I see the code’s name.
- Given an expired code, when I enter it, then I see the message “Code expired” and the total doesn’t change.
- Given one code already in the cart, when I enter a second, then the second replaces the first (codes don’t stack).
- Given a code with a minimum order of PLN 200, when I remove products and the total falls below PLN 200, then the code is removed with a message.
- Given a code in the cart, when I go to payment, then the amount at the payment provider equals the discounted total.
Five sentences that save several bug reports and one post-release argument. Other shop cases are covered in e-commerce testing before peak season.
Example mapping in 25 minutes
| card colour | what we write | example |
|---|---|---|
| yellow | user story | discount code in the cart |
| blue | rule | codes don’t stack |
| green | example for a rule | I enter a second code, the first disappears |
| red | unanswered question | does the code work on products already on sale? |
If there are more red cards than green ones, the story isn’t ready for development. The questions go to the product owner and the story comes back at the next planning session.
When to do it
- during backlog refinement: the tester reads the story before the meeting and comes with questions;
- before work starts: 15-30 minutes of three amigos for bigger stories;
- not after the fact: reviewing requirements after the code is written is already testing, not prevention.
Reviewing requirements is one of the practices in how to reduce bugs in production. Finished acceptance criteria come in handy later in user acceptance testing with the client.
How I can help
As part of QA support I take part in planning and review user stories before development. In a QA audit I check how many production bugs come from requirements and suggest how to change that. Describe your team in the contact form.