QA AND TEST AUTOMATION · PART 1 · MANUAL TESTING, PROPERLY · ANALYSIS · 7 OF 112

Requirements and Acceptance Criteria for Testers

How a tester reads requirements before any code exists: functional and non-functional rules, user stories and acceptance criteria in Given, When, Then form, what makes a rule testable, hunting vague words, gaps and implicit rules, asking good questions, and turning a rule into test conditions, all on real ShopRung rules.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 67
  63. 68
  64. 69
  65. 70
  66. 71
  67. 72
  68. 73
  69. 74
  70. 75
  71. 76
  72. 77
  73. 78
  74. 79
  75. 80
  76. 81
  77. 82
  78. 83
  79. 84
  80. 85
  81. 86
  82. 87
  83. 88
  84. 89
  85. 90
  86. 91
  87. 92
  88. 93
  89. 94
  90. 95
  91. 96
  92. 97
  93. 98
  94. 99
  95. 100
  96. 101
  97. 102
  98. 103
  99. 104
  100. 105
  101. 106
  102. 107
  103. 108
  104. 109
  105. 110
  106. 111
  107. 112
1 / 17

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Test basis
  • functional and non-functional
  • Given, When, Then
  • circle vague words
  • find gaps
  • ask with examples

Notes

The problem

Look at ShopRung rule ACC seven. A login lasts two hours. Two hours from the moment you log in, or two hours after your last click? Both readings are reasonable. ShopRung does the first: the login token expires two hours after login, however busy you are. If the developer built one reading and the tester expected the other, you get a bug report, then an argument. The real defect was in the sentence, and a careful reader could catch it on day one.

ACC-7: "A login lasts 2 hours"
  • reading A: 2 hours from the moment you log in reading B: 2 hours after your last click
  • ShopRung does A: the token expires 2 hours after login
  • dev built A, tester expected B: a bug report, then an argument

The idea

Whatever tells you how the system should behave is called the test basis. That can be a requirements document, user stories, designs, or an API contract. You read it for two jobs. First, to find what to test: each rule becomes things to check. Second, to test the requirement itself. Is it vague, incomplete, or does it clash with another rule? Reviewing documents without running code is called static testing, and it is the cheapest testing there is.

Two jobs when you read
  • 1 find what to test each rule becomes test conditions and test cases
  • 2 test the requirement itself vague, missing, clashing? this is static testing: no code is run
  • test basis: whatever tells you
  • how the system should behave

Kinds of requirements

Requirements come in a few kinds. Business requirements say why the product exists, like selling online and rewarding bigger orders. Functional requirements say what the system does: in ShopRung, a cart line holds one to ten of a product, and an order moves through fixed statuses. Non-functional requirements say how well it does it: search answers in under a second, pages work on Chrome, Safari and a phone, every field has a label. Testers check both kinds, and the second kind is the one teams forget.

ShopRung examples
  • business: sell online, reward bigger orders
  • functional: what it does CART-2 quantity 1 to 10 ORD-4 order statuses
  • non-functional: how well SRCH-5 results under 1 s NF-1 Chrome, Safari, phone NF-2 every field has a label
  • constraint: money in US dollars

User stories

Agile teams usually write requirements as user stories. As a customer, I want a coupon on big orders, so that I pay less. A story is deliberately short. It says who wants what, and why. On its own it is not testable. What makes it testable is the list under it, called acceptance criteria: the conditions that must be true for the story to count as done. SAVE10 takes ten percent off from fifty dollars, the code is not case sensitive, and a refused code says why.

A story for SAVE10
  • As a customer
  • I want a coupon on big orders
  • so that I pay less
  • acceptance criteria:
  • SAVE10 takes 10% off from a subtotal of $50.00
  • the code is not case-sensitive
  • below $50.00 the cart says why it was refused

Given, When, Then

Many teams write acceptance criteria as scenarios in a format called Given, When, Then. Given sets the starting state, such as a subtotal of exactly fifty dollars. When is the one action, applying the code in lower case. Then is the outcome you can check, a discount of five dollars. A second scenario covers forty nine ninety nine, where the coupon is refused with a reason. Notice the examples sit right on the edge. Good acceptance criteria already contain the interesting test data.

PRICE-3 as scenarios
Scenario: SAVE10 at exactly $50.00
  Given my cart subtotal is $50.00
  When I apply the coupon "save10"
  Then the discount is $5.00

Scenario: SAVE10 below $50.00
  Given my cart subtotal is $49.99
  When I apply the coupon "SAVE10"
  Then the coupon is refused
  And I see why

Testable or not

What makes a rule testable? You can decide pass or fail without arguing. Search is fast is not testable. Rule search five, results in under one second, is. Good passwords is not testable. Eight to sixty four characters with at least one letter and one digit is. Even good rules deserve questions. Under one second measured where, in the browser or at the server? With twelve products or ten thousand? With one user or a hundred? A number without its conditions is only half a requirement.

Make it checkable
vague               testable
search is fast      SRCH-5: under 1 s
small orders pay    PRICE-9: $4.99
  shipping            below $75.00
good passwords      ACC-5: 8 to 64,
                      letter + digit

still ask about SRCH-5:
  measured where? how many
  products? how many users?

Hunting vague words

Circle the risky words. Fast, easy and user friendly hide a number nobody chose. Should and may hide whether something is required. Etcetera hides the rest of a list. And or hides two rules in one. All and never are promises you must try to break. ShopRung rule NF three says error messages explain what is wrong and how to fix it. A fair goal, but who decides when a message passes? Agree a few example messages, and the rule becomes checkable.

Words to circle
  • fast, easy, user-friendly
  • should, may, usually
  • etc., and so on and/or all, every, never
  • appropriate, valid, correct
  • NF-3: "error messages say what
  • is wrong and how to fix it" who decides? agree examples

A worked example

Read rule price five slowly. WELCOME fifteen expired on the thirty first of December twenty twenty five. Was the code still valid on the thirty first itself? In ShopRung, yes: it is refused from the first of January. And midnight in which time zone? ShopRung compares the date in UTC, so for a customer in New York or Mumbai, the change does not happen at local midnight. Neither answer is in the sentence. Write both into the rule, so the next reader does not have to guess.

PRICE-5: expired on 31 Dec 2025
  • Q: is 31 Dec itself valid?
  • A: yes; refused from 1 Jan 2026
  • Q: whose time zone?
  • A: ShopRung compares the UTC date, so customers far from UTC see the switch earlier or later than local midnight
  • write both answers into the rule

Gaps

Next, look for what is missing. Rule price nine says shipping is four ninety nine below seventy five dollars. So what is the shipping on an empty cart? The ShopRung API returns zero, and no rule says so. Rule price two allows one coupon per order. If you apply a second, is it refused, or does it replace the first? The app replaces it, silently. Is an accented e a letter for the password rule? The app counts only A to Z. None of these are bugs yet. They are questions.

Gaps in the ShopRung rules
  • PRICE-9: shipping is $4.99 below $75.00. An empty cart? the API says $0.00; no rule says so PRICE-2: one coupon per order. apply a second: refuse it, or replace the first? the app replaces it
  • ACC-5: is "é" a letter? the app counts only A to Z

Unwritten rules

Some requirements are never written because everyone assumes them. A refresh does not lose the cart. A double click on place order does not create two orders. The back button does not break checkout. Nobody sees another customer's data. The page works with a keyboard alone. Totals agree on every page. ShopRung wrote a few of these down, like order privacy in rule order seven and visible labels in rule NF two. Most teams do not, so a tester lists them and asks which ones matter.

Implicit requirements
  • data survives a page refresh
  • double-click does not order twice
  • back button does not break the flow
  • no one sees another's data
  • works with keyboard only money adds up on every page
  • ShopRung wrote some: ORD-7, NF-2. most teams do not

Asking good questions

How you ask matters. Coupons are unclear is a weak question; it gives nobody anything to answer. A strong question names the rule, gives a concrete example, says what happens today, and suggests an answer. If FLAT five is applied and I enter SAVE ten, should it replace the first coupon or be refused? Ask early, in refinement, or in a short three amigos talk between business, developer and tester. Then make sure the answer lands in the rule, not in a chat thread.

Weak vs strong question
  • weak: "coupons are unclear"
  • strong: "PRICE-2 allows one coupon. If FLAT5 is applied
  • and I enter SAVE10, should
  • SAVE10 replace it (today's
  • behaviour) or be refused?
  • I suggest replace, with a message."

Rule to test conditions

Now turn a rule into test conditions. A test condition is one thing worth checking, before you decide the exact steps. Rule price three gives several. Forty nine ninety nine is refused. Exactly fifty gets ten percent. A large subtotal gets ten percent. Lower case code works. The discount rounds to the cent, which pulls in rule price six. And if the cart drops below fifty later, rule price eight says the coupon stops applying. Each condition keeps its rule id, so you can trace it later.

Test conditions for PRICE-3
  • subtotal $49.99: refused
  • subtotal exactly $50.00: 10%
  • subtotal well above: 10%
  • code in lower case: accepted
  • discount rounds to the cent (PRICE-6)
  • cart drops below $50.00 later: coupon not used (PRICE-8)
  • each one links back to its id

Rules of thumb

A few habits make this routine. Read each story before the sprint starts, not after the code arrives. Keep one question list per story. Ask for at least one example with real numbers for every rule. Every number needs its unit and its edge: is fifty dollars included or not? And remember the economics. A requirement fixed during review costs a short conversation. The same misunderstanding found in production can cost a hotfix, a refund and a customer.

Rules of thumb
  • read every story before the sprint starts, not after one question list per story
  • every rule needs an example with real numbers
  • every number needs its unit and its edge (≥ or >?)
  • a requirement fixed in review costs minutes; in production, far more

Common mistakes

The common mistakes. Waiting for the build before thinking about tests. Testing only what is written and ignoring the gaps. Treating whatever the developer built as the requirement; the product owner decides behaviour, not the code. Getting an answer in a chat and never writing it into the rule, so the next tester asks again. Skipping non-functional rules like speed and accessibility. And asking questions so vague that nobody can answer them.

Avoid these
  • waiting for the build to start thinking about tests
  • testing only what is written
  • treating the developer's answer as the requirement
  • answers left in chat, never written into the rule
  • skipping non-functional rules
  • asking vague questions

Say it like this

Interviewers love this question: what do you do when requirements are unclear or missing? A strong answer. I review the story before the sprint and list questions with concrete examples. I take them to the product owner, or to a three amigos session with the developer. The answers go back into the acceptance criteria. If I have to start before I get answers, I write my assumptions down, share them, and test the riskiest ones first. That shows you prevent bugs, not just find them.

In the interview
  • "I review the story before the sprint, list questions with concrete examples, and take them to the product owner or a three amigos session. Answers go back into the acceptance criteria. If I must start first, I write my assumptions down and test the riskiest ones."

Interview questions

Q1What is a test basis?

Everything the tests are derived from: requirements, user stories with acceptance criteria, designs, API contracts, even an old system the new one must match. If the basis is wrong or vague, the tests will be too, so reviewing it is part of testing.

Q2What is the difference between functional and non-functional requirements?

Functional requirements say what the system does, such as a cart line holding 1 to 10 items. Non-functional requirements say how well it does it: speed, security, usability, accessibility, compatibility. Both need tests, and non-functional ones are the most often forgotten.

Q3What are acceptance criteria?

The conditions a user story must meet to be accepted as done, written so they can be checked. They are often written as Given, When, Then scenarios with concrete examples, which become the first test cases.

Q4What makes a requirement testable?

It is clear, specific and measurable, so two people would agree whether the system passes. "Search is fast" is not testable; "search returns results in under 1 second for the full catalogue, measured at the server" is.

Q5What is static testing, and why does it matter for requirements?

Static testing finds defects without running the software, through reviews and analysis. Reviewing requirements finds ambiguity, gaps and contradictions before any code is written, when fixing them costs only a conversation.

Q6What do you do when a requirement is ambiguous?

Write a specific question with a concrete example and a suggested answer, ask the product owner or business analyst early, and make sure the agreed answer is written back into the requirement. Meanwhile, record any assumption you test against.

Q7What are implicit requirements? Give examples.

Expectations nobody writes down because everyone assumes them: a refresh does not lose data, a double click does not submit twice, users cannot see each other's data, the page works with a keyboard. Testers list them and confirm which ones matter.

Q8What is a three amigos session?

A short conversation about a story between the business view (product owner or analyst), the developer and the tester before development starts. It surfaces questions, examples and edge cases early, and often produces the acceptance criteria.