The parts of a good test case
A good test case names what must be true before, what to do, what to expect, and what is true after. Leave one out and a stranger cannot run it.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a recipe. A recipe lists the ingredients, the steps, and how the dish should look. Leave out the ingredients and a stranger cannot cook it. Leave out the picture and nobody knows if it worked.
A is a recipe for one check. Tom, the tester at Daily List, writes one for 'add a due date'. Daily List is a to-do list app.
First comes the precondition. It is what must be true before the test starts, such as a logged-in account. Then come the steps. A is one action the tester takes. Last come the and the postcondition. A postcondition is what should be true after the test, such as a saved task.
Tom also gives the case a name and a title, so people can find it.
The recipe has a limit: a tester may discover a faulty case during execution. Record the issue and any deviation, clarify the intended check and update the version rather than following a known mistake.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 2 in this section
- precondition
- something that must be true first
- postcondition
- what is true when a use case has ended
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Writing one check so completely that a stranger can set up, run it and judge the result without asking anyone.
- Before: the precondition
- Do: the steps
- Expect: the result
- After: the postcondition
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The ingredients | The preconditions |
| The recipe steps | The test steps |
| The picture of the dish | The expected result |
| The kitchen left tidy | The postcondition |
| The name on the card | The identifier and title |
WHERE THIS PICTURE STOPS
- A cook can taste and fix a dish. A tester follows the case as written.
- A recipe is for eating. A test case is for judging the app.
- A dish has one look. A test step may have a result at each step.
HOOK
Before, do, expect, after.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Precondition asks what must be true before I start. Postcondition asks what should be true when I finish.
| In the trick | What it stands for |
|---|---|
| Precondition | what must be true before the test starts |
| Postcondition | what should be true after the test |
TELL A FRIEND
A recipe lists ingredients, steps and how the dish should look. A lists the start, the steps, the and the end state.
OFTEN MIXED UP WITH Test scenarios, cases and scripts. The earlier lesson compares scenarios, cases and scripts. This lesson opens one and names its parts.
PRACTISE AND KEEP
Sources for this topic — 8 sources
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Foundation Level syllabus v4.0.1, test cases as work products: preconditions, inputs, expected results and postconditions (confirmed against the syllabus, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024) | Publisher PDF v4.0.1,15 September2024, relevant cited section opened6 November2026; synthetic Daily List applications are editorial examples.
v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.
Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.
The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.
The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.
7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.
- Market practice
Glossary of testing terms from the International Software Testing Qualifications Board (equivalence partition, equivalence partitioning, boundary value) ↗ — International Software Testing Qualifications Board (ISTQB) · ISTQB glossary: test case, a set of preconditions, inputs, actions, expected results and postconditions (search excerpt, page not opened)
Seen as a search excerpt; the page was not opened. The authoring container could not resolve this publisher's host name when a fetch was tried on 12 October 2026 for related hosts, so this is a reachability gap and not a statement about the publisher. The glossary has an older and a newer version of the entry for equivalence partitioning; the newer one defines the partition rather than the technique.
- Market practice
Foundation Level testing syllabus, 4.2 Black-Box Test Techniques (US member board of the International Software Testing Qualifications Board) ↗ — American Software Testing Qualifications Board (ASTQB) · Foundation Level 4.2 Black-Box Test Techniques, as published by a member board: test cases come from test conditions (search excerpt, page not opened)
Seen as a search excerpt; the page was not opened. The authoring container could not resolve this publisher's host name when a fetch was tried on 12 October 2026 for related hosts, so this is a reachability gap and not a statement about the publisher. It relays the registered syllabus and adds no independent rule.
- Market practice
Bug Severity vs Priority in Testing (BrowserStack) ↗ — BrowserStack · Severity (harm) versus priority (order) from registered BrowserStack and TechTarget pages. Placing severity on the defect and priority on the case is the lesson's own teaching choice (consistent with the defect-reports lesson), answering two Quora threads; no source says test cases must or must not carry severity.
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 determines the appropriate severity or priority for a defect? (TechTarget) ↗ — TechTarget · Severity (harm) versus priority (order) from registered BrowserStack and TechTarget pages. Placing severity on the defect and priority on the case is the lesson's own teaching choice (consistent with the defect-reports lesson), answering two Quora threads; no source says test cases must or must not carry severity.
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
How to create Selenium test cases - BrowserStack guide ↗ — BrowserStack · BrowserStack's guide pairs positive (happy path) and negative (invalid input) cases; search excerpt, page not opened. The past-date example is invented for Daily List.
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
Bug Writing Guidelines (MDN Web Docs, Mozilla QA) ↗ — Mozilla · Minimized steps to reproduce, expected and actual results, test on an up-to-date or in-development build, one issue per report (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 Tester Advanced Level Test Analyst (CTAL-TA) Syllabus v4.0 ↗ — US member board of the International Software Testing Qualifications Board · ISTQB CTAL-TA v4.0 GA,2 May2025, publisher PDF opened6 November2026: §1.2.4 and §1.3 for anomalies, case quality/levels, environment/oracle/data; §2.2 regression selection; §3.4 experience-based approaches; §5.2 review techniques. Apply only the relevant lesson claim, not universal process mandates.
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
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.