TOPIC 03/7412 MINNOT STARTED

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.

  1. Before: the precondition
  2. Do: the steps
  3. Expect: the result
  4. After: the postcondition
The four parts of a case

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The ingredientsThe preconditions
The recipe stepsThe test steps
The picture of the dishThe expected result
The kitchen left tidyThe postcondition
The name on the cardThe 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.

What each part of the trick stands for
In the trickWhat it stands for
Preconditionwhat must be true before the test starts
Postconditionwhat 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
  1. 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.

    The examinable statement of what a foundation-level tester is expected to know: six chapters, 64 learning objectives, each tagged K1 Remember, K2 Understand or K3 Apply, plus the test-design techniques the qualification names and groups as black-box, white-box and experience-based.

    Used here for the test-craft questions a Payment Quality Assurance Analyst and a Production Support Analyst are asked. It is cited for what the syllabus says a tester must be able to do, never as a rule about how payments work. · Checked 2026-11-07

    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.

  2. 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)

    The board's glossary of testing terms. Cited for two definitions. An equivalence partition is a subset of a value domain for which a component or system is expected to treat all values the same. A boundary value is the minimum or maximum value of an ordered equivalence partition. · Checked 2026-10-12

    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.

  3. 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)

    A second publisher for the syllabus section on equivalence partitioning, boundary value analysis, decision table testing and state transition testing. Cited for the names of the four techniques and the syllabus objectives that ask a tester to apply each. · Checked 2026-10-12

    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.

  4. 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.

    Vendor guide. Says severity is how badly a defect damages function and priority is how soon it should be fixed, with examples of each mix. Search excerpt only. · Checked 2026-10-18

    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.

  5. 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.

    A trade-press answer. Per the search excerpt, testers and developers often disagree about severity, close-call cases are a judgement call, and in Scrum the product owner with team input ranks the defect. No standard settles who has the final say. · Checked 2026-10-18

    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.

  6. 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.

    Test cases come from asking questions about a requirement; positive cases use correct data and negative cases use invalid input. · Checked 2026-10-19

    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.

  7. 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)

    Minimized steps to reproduce, expected and actual results, test on an up-to-date or in-development build, one issue per report. · Checked 2026-10-18

    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.

  8. 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.

    Version 4.0 GA syllabus (2 May 2025), read in full text. Used for the objective ids and levels, the behaviour-based techniques in section 3.2, keyword-driven testing in 1.3.6, flexibility testing in 4.3 and defect prevention in chapter 5. It does not teach cause-effect graphs. Paraphrased, not quoted. · Checked 2026-10-18

    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.