Specification by example
Teams write down how a rule works with a few real examples that everyone can read and check. Learn to pick key examples and keep them true over time.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: Two worked sums. A teacher gives two worked sums on the board. The class sees how the rule works. "Two apples and three apples is five apples." Now everyone has the same picture. The teacher still says the rule out loud. The examples help the class see it.
Sam is a , the person who finds out what people need. Sam works on Daily List, a to-do list app. A rule has been agreed: the free plan lets a user share up to 3 lists. Sam suspects that Leo, the developer, and Tom, the tester, read "up to 3" in different ways.
So Sam sits down with Tom and writes examples. This is : using concrete examples as the shared description of how something should work.
Each example is a , a short example that shows one rule clearly. Sam writes three. Lily shares 2 lists, so she can share a third. Lily shares 3 lists, so a fourth is refused. An old account already shares 4 lists. What happens?
That third example raises a question nobody had asked. Nina, the who decides what the team builds next, answers it.
Sam keeps the examples where everyone can review them. When maintained alongside useful checks and the agreed rules, they serve as . They can still contain gaps or mistaken expectations, so running them does not replace reviewing their meaning.
The worked sums have one limit. Examples show the rule, but they do not replace stating it.
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB A few real examples that the team writes and agrees give builders and testers one shared picture of how a rule works.
- State the rule
- Ask for cases
- Write real values
- Listen for questions
- Keep them alive
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| Two worked sums on the board | Key examples with real values |
| The teacher saying the rule aloud too | The rule stated in words |
| The class seeing the same picture | Developer, tester and owner reading it alike |
| A sum that shows the tricky case | An example at the edge of the rule |
| Checking the sums again each term | Living documentation kept true by checks |
WHERE THIS PICTURE STOPS
- A teacher gives the sums alone, but here the whole team writes the examples together.
- Sums in a book stay the same. Product examples can go stale and must be checked.
- Sums show a rule that already exists. Examples here help find gaps in a rule.
HOOK
Rule in words, cases in values, checks to keep true.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
If a rule has a limit, write one example below it, one on it and one past it. The odd one raises the question nobody asked.
| In the trick | What it stands for |
|---|---|
| Below | Lily shares fewer lists, so she can share a third |
| On the limit | Lily shares as many lists as the limit, so a fourth is refused |
| Past it | An old account already shares more lists |
A rule without a limit, such as a wording rule, needs other kinds of example.
TELL A FRIEND
describes a rule with a few real cases that the team writes together. The cases are kept as checks so mismatches can be investigated.
OFTEN MIXED UP WITH Acceptance criteria and examples (Given / When / Then). That topic shows how to write conditions with Given, When, Then. This one makes examples the shared description of the rule and keeps them true.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
The Business Analysis Standard ↗ — International Institute of Business Analysis · The Business Analysis Standard (v2.0), task level: a task to specify requirements with examples and a task to check them, so that builders and testers share one picture (search excerpt of the IIBA task card, page not opened)
A free PDF of the same Standard (v2.0) is published at https://www.iiba.org/knowledgehub/the-business-analysis-standard.pdf. Re-checked 2026-08-25: the Knowledge Hub HTML URL above remains the live canonical page; do not replace it with a third-party mirror.
What it does not carry: the technique catalogue. BABOK v3's 50 techniques live in BABOK v3 only, which is behind IIBA membership (ISBN 9781927584026). A question naming a technique needs the book, verified by a person holding it, or should be rewritten to ask about the task instead.
And it does not carry the knowledge areas either. The Standard's own section 5.3 says it "intentionally does not include information on the knowledge areas defined in the Business Analysis Body of Knowledge", and refers the reader to BABOK for them. It names the six and links out to each, and it illustrates the 30 tasks, but the detail sits in BABOK. Cite this entry at task level, not at knowledge-area level.
Current edition is v2.0, a 2025 refresh of roughly 60 pages. The often-quoted "June 2023, 110 pages" describes a different object — the print edition, ISBN 9781927584378, of the earlier text. Welding one object's version to another's date is the error this paragraph exists to prevent.
Free to read is not open: the document is "All rights reserved". Cite and rewording; do not reproduce at length.
One naming difference worth knowing when comparing against BABOK: the Standard calls knowledge area C "Requirements and Designs Life Cycle Management" where BABOK says "Requirements Life Cycle Management". Both forms were read on the page on the access date, the first in the Standard's own explore section and the second in the BABOK contents beside it.
A dead address, corrected. The registered URL sat under /business-analysis-body-of-knowledge/, a path IIBA has retired; that path and its parent both answer HTTP 404. The Standard is published under /knowledgehub/ at the address above.
The previous note said iiba.org could not be fetched, that roughly thirty candidate mirrors were each refused, and that nothing in the entry was a page-read of an IIBA document. That is withdrawn. The publisher's own page was read directly at HTTP 200 on the access date, and the claims above are checked against it. Read update7November2026: actual selected source scope above now inspected; previous broader/excerpt-only notes remain history and are not extended to unread sections.
- Market practice
Specification by Example book review (InfoQ) ↗ — InfoQ · InfoQ article on the book Specification by Example: a method of specifying with examples, where an automated specification with examples stays readable by people and is called an executable specification (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Fresh check7November2026: opened main interview and book-review context, including interview body186–258; author Shane Hastie,24October2011. This is an editorial interview/review, not the book itself or an official standard. Historical search-only note above describes the earlier review.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: The Daily List app and its people are invented for teaching. The method in the book has more patterns than shown here. Examples show a rule but do not replace stating it.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
What is Acceptance Test Driven Development? ↗ — LogRocket · ATDD as agreeing acceptance tests before development after a three amigos conversation; vendor blogs and a glossary page. (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Three Amigos ↗ — Ministry of Testing · ATDD as agreeing acceptance tests before development after a three amigos conversation; vendor blogs and a glossary page. (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Who does what? (BDD) ↗ — Cucumber · Cucumber docs (search excerpt, page not opened). Cucumber names product owner, tester and developer; Sam stands in for the business side here.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Introducing Example Mapping ↗ — Cucumber · Cucumber example mapping post (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Professional for Requirements Engineering (CPRE) Foundation Level syllabus, English, version 3.3.0 (International Requirements Engineering Board) ↗ — International Requirements Engineering Board (IREB) · CPRE Foundation Level syllabus3.3.0,1April2026, §§3.2,4.4 (3.2 Natural-Language-Based Work Products; 4.4 Validation of Requirements).
Primary versioned PDF opened via normal web tool and downloaded/extracted on2026-11-06. Copyright authors and IREB e.V.; original educational paraphrase with attribution. No source artwork copied.
- Market practice
Gherkin reference (Cucumber documentation) ↗ — Cucumber · Official reference: Given, When, Then, And and But are valid step keywords; Rule and Scenario Outline structures. A focused example need not ban And.
Publisher page opened on 5 November 2026. Earlier search-only notes are superseded for the claims stated here. Wording is paraphrased; source-figure reuse is not assumed.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.