Choosing test data for good and bad input
Techniques tell you which groups of values to test. This lesson shows how to pick the real values to type: one sensible, one blank, one too long, one odd.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a fire drill for a form. In a drill, you do not wait for a real fire. You practise with a few set cases: a calm exit, a blocked door and a long queue. Each case tests a different part of the plan, and none is left to luck.
Daily List is a to-do list app, and the add-a-task screen has a title box. Tom, the tester, has learned that he should test groups of values. Now he has to decide what to actually type into the box.
He picks a drill of values, and a sensible title like buy milk, to show the normal path works. A blank title, to see what the app does with nothing, and a title far too long, to find the limit. A title with odd characters, to see whether the app copes.
Each value tests a different part of the plan, and together they cover more than ten random titles would. Tom writes them down before the test, so the drill can be repeated.
The picture has a limit. A fire drill has one right answer, which is to leave the building. A form can have several correct responses, and Tom must know in advance which one is expected.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
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 Choosing the real values to type into a form so that each one tests something different.
- Normal path
- Blank
- Edge
- Odd
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Calm exit | Typical value |
| Blocked door | Empty input |
| Long queue | Boundary value |
| Fire in a place no one expected | Hostile input |
WHERE THIS PICTURE STOPS
- A drill has one right answer. A form may have several, so know the expected result first.
- A drill is held in a safe place. Hostile input must also stay on a safe test system.
- A drill repeats the same plan. Test data should change with the rules.
HOOK
Normal, blank, edge, odd.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
For the title box, try buy milk, nothing at all, a title far too long, and odd characters. Write them down before the test so the drill can be repeated.
| In the trick | What it stands for |
|---|---|
| Normal | a sensible title like buy milk |
| Blank | nothing at all |
| Edge | a title far too long, to find the limit |
| Odd | a title with odd characters |
TELL A FRIEND
A fire drill tests a calm exit, a blocked door and a long queue. A form test uses a normal value, a blank, an edge and an odd value.
OFTEN MIXED UP WITH Preparing test data. The earlier lesson says how to prepare and keep . This lesson says which values to put in it for one field.
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 · Section 4.2: black-box test techniques, equivalence partitioning and boundary value analysis, which choose values from valid and invalid groups and from the edges of each group (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
Open Worldwide Application Security Project cheat sheet series: input validation ↗ — Open Worldwide Application Security Project (OWASP) · Input validation checks, such as minimum and maximum length for strings and range for numbers and dates, and allow lists over deny lists (registry entry; excerpt seen in a search)
Search excerpt, page not opened: returned by WebSearch on 2026-10-18. The excerpts did not use the phrase as early as possible in the data flow, so this site does not quote it. It is guidance for software in general, not for payments.
V34 review, 6 November 2026: Read complete official repository sheet. Syntax, semantic business rules, server checks and safe handling of legitimate Unicode/punctuation have distinct roles.
- Market practice
OWASP Secure Coding Practices checklist ↗ — Open Worldwide Application Security Project · A copy of a secure coding checklist: hazardous characters need extra controls, and null bytes and new-line characters are inputs a normal check may miss (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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
Negative Testing (Ministry of Testing glossary) ↗ — Ministry of Testing · A glossary page on negative testing: tests that use invalid input or unexpected actions (registry entry)
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
syntax testing (ISTQB glossary entry as quoted on SoftwareTestPilot) ↗ — SoftwareTestPilot (study site) · r8t-softwaretestpilot-syntax-testing: ISTQB definition as quoted by a study site (tests designed from the definition of the input or output domain; grammar such as BNF). Search excerpt, page not opened. Official glossary entry not seen.
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
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Sections 4.2.1 and 4.2.2: equivalence partitioning with valid and invalid partitions, and boundary value analysis on the minimum and maximum of ordered partitions (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.
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.