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.
- 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.
- 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.
- 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.
- 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.
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.
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.
- 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.
- 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.
- 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.
- 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: "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.
- 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.
- 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.
- 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.
- "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."