Writing test conditions and test cases
Identify what to check from a trustworthy basis, then specify cases with setup, data, actions, expected results and postconditions. Record unresolved rules; do not invent any.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: checking a recipe. A cook has an agreed recipe and wants to check whether soup meets its stated serving target. That is the condition: what to check. The case specifies the starting setup, heating steps and thermometer reading expected for this recipe. The target comes from the recipe, not from whatever the thermometer happens to show. Different starting quantities may need different cases.
Daily List, a to-do list app, has the same distinction. Sam writes: 'Remind me the day before a task is due.' That story is part of the , the information used to analyze and design tests. Tom identifies a condition about reminder timing, then proposes a case for a Friday-due task. Thursday follows the ordinary calendar-day rule; the exact time and timezone still need agreement before a precise timed check.
The says what should happen under the chosen conditions. Work it out from an appropriate basis, not by copying the result under test. If the basis is unclear, record the question and obtain an authorized clarification rather than marking an observation correct merely because it looks sensible.
The recipe picture has a limit. Detailed instructions can help repetition, but the data, starting state, clock and tools still matter. A case can cover several conditions and leave a postcondition, such as needing cleanup.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 3 in this section
- specifies
- states exactly what is required
- thermometer
- a tool that measures how hot something is
- 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 Telling a condition from a case keeps a team from skipping the thinking about what to check before it writes how to check it.
- Read the test basis
- List the conditions
- Write a case for one condition
- Work out the expected result first
- Run the case and compare
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The thing the cook reads, such as a recipe | The test basis, such as a story or a design |
| The soup is hot enough to serve | The test condition, a short statement of what to check |
| Heat for some minutes, then use a thermometer | The case specifies setup, data, actions, expected results and postconditions |
| The reading the thermometer should show | The expected result, written before the run |
| Several soups needing different times | Several cases for one condition, with different data |
WHERE THIS PICTURE STOPS
- A recipe case with every step written out is easy to repeat but slow to change. Teams choose how much detail suits them.
- The recipe supplies its own target; software expected results can depend on approved data, time, state and environment rules.
- One case can address several conditions and needs expected results and postconditions, not only actions.
HOOK
Basis, condition, case, then the result first.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
A answers "what to check", and a answers "how to check it". Write the expected result before you run.
| In the trick | What it stands for |
|---|---|
| Condition | A reminder arrives the day before |
| Case | Make a task due on Friday and check for a reminder on Thursday |
| Expected result | Written before the run so the answer does not bend |
A case with every click written out is easy to repeat but slow to update.
TELL A FRIEND
A cook decides what to check, then how to check it, and knows what a good reading looks like before using the thermometer. A tester does the same with a condition, a case and an .
OFTEN MIXED UP WITH The test process, step by step. The test process lesson shows where analysis and design sit in the whole flow. This lesson shows what they produce.
Sources & standards — 2 sources
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · CTFL 4.0.1 (15 September 2024), §§1.4.1–1.4.4 test analysis/design, context, testware and traceability; §4.1 technique overview. Actual selected official PDF text read 7 November 2026. Local rules, approvals, clocks and fixtures are synthetic.
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 practiceLive term version 2; glossary application V4.8.1 is separate metadata
ISTQB Glossary — test case (term version 2) ↗ — International Software Testing Qualifications Board · Actual rendered official test-case term version 2, full definition body read 7 November 2026: preconditions, inputs, actions where applicable, expected results and postconditions, based on plural test conditions. App footer V4.8.1 is separate metadata.
Actual rendered official term body read in Chromium and cached locally on 7 November 2026. Cached body SHA256 881fb83371e6841623462c928fcb94a4f495d2f95b474935801d27a763f43be6. No unseen publication date, all-glossary review or app-version/term-version equivalence is claimed.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Foundation Level syllabus v4.0.1, chapter 1 (fundamentals of testing), section 1.4: test activities, including test analysis and test design; chapter 4, section 4.1: test techniques (confirmed against the syllabus, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024)
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) · Glossary of testing terms: test basis, test condition, test case and expected result (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
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · CTFL v4.0.1 (2024-09-15), §1.4.1–1.4.4 test conditions, cases and expected results. Official publisher PDF opened 2026-11-05. Daily List examples are synthetic.
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 practiceLive glossary; indexed v4.8.1 on 2026-11-05
ISTQB Glossary — test case ↗ — International Software Testing Qualifications Board · Official indexed test-case definition, v4.8.1 label seen 2026-11-05; app opened but no readable lines. Includes postconditions and test conditions in the plural.
Official term page opened 2026-11-05 but its JavaScript app exposed no readable text to the web extractor. The official search-index excerpt supplies the definition and v4.8.1 label. Do not claim full glossary read or an unseen publication date.
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · CTFL 4.0.1 (15 September 2024), §§1.4.1–1.4.4 test analysis/design, context, testware and traceability; §4.1 technique overview. Actual selected official PDF text read 7 November 2026. Local rules, approvals, clocks and fixtures are synthetic.
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 practiceLive term version 2; glossary application V4.8.1 is separate metadata
ISTQB Glossary — test case (term version 2) ↗ — International Software Testing Qualifications Board · Actual rendered official test-case term version 2, full definition body read 7 November 2026: preconditions, inputs, actions where applicable, expected results and postconditions, based on plural test conditions. App footer V4.8.1 is separate metadata.
Actual rendered official term body read in Chromium and cached locally on 7 November 2026. Cached body SHA256 881fb83371e6841623462c928fcb94a4f495d2f95b474935801d27a763f43be6. No unseen publication date, all-glossary review or app-version/term-version equivalence is claimed.
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.