TOPIC 07/7412 MINNOT STARTED

Preparing test data

Tests need data in place before they run. Build a named set, put it back to a known start when it changes, and never use real people's details.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: setting a table before guests come. You put out a plate for each guest and one spare. If a plate is missing halfway through the meal, the meal is spoiled. You set the table first.

Tests need a table set too. Tom, the tester at Daily List, a to-do list app, plans to test sharing. He needs a free account, a paid account and a list with 50 tasks. He makes them before he starts.

The prepared group of data that a test or suite needs is a . After the tests change things, Tom puts the data back to a known starting state. That is a .

He never copies Lily's real list into the test site. If he must use real-looking data, he uses : real-looking data with personal details removed or replaced.

The picture has a limit. A table is set once for one meal. must be reset again and again.

(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 Getting the data a test needs ready before the run, putting it back to a known start when tests change it, and keeping real people's details out.

  1. Set the data
  2. Reset after changes
  3. Mask real details
Three moves for data

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Plates for each guest and a spareThe test data set with a spare account
Clearing and re-laying the tableThe data refresh
A place card with a made-up nameMasked data
Setting the table before guests comePreparing data before the run

WHERE THIS PICTURE STOPS

  • A table is set once per meal. Test data may need to be reset many times.
  • A guest list may be real; masked data can still be real-derived and identifiable.
  • A missing plate can be fixed at the table. Missing data can stop a test.

HOOK

Set it, reset it, mask it.

REMEMBER IT THIS WAY

A rule of thumb: if you see this, think that.

If a test changes the data, refresh it to a known start before the next run. If the data looks real, mask it.

What each part of the trick stands for
In the trickWhat it stands for
Test changes dataAfter the tests change things
Refreshputs the data back to a known starting state
Maskpersonal details removed or replaced

A refresh can wipe a failure you still need to look at, so look first.

TELL A FRIEND

A host sets the table with a plate for each guest and a spare. A tester builds a with the accounts and lists the tests need.

OFTEN MIXED UP WITH Templates, suites and keeping tests in order. The earlier lesson keeps cases in order with suites. This lesson prepares the data that a suite needs before it runs.

PRACTISE AND KEEP

Sources for this topic — 6 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 implementation includes building the test data and the test environment that tests need (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

    Regulation (EU) 2016/679 — data protection principles, definitions and security ↗ — European Union · Regulation (EU) 2016/679 Article 5: personal data is processed for set purposes and kept to what is needed, which is a reason to mask personal data before testing (general knowledge of the article, page not opened)

    EU GDPR: identifiable personal data, separately protected additional information for pseudonymisation, means reasonably likely to identify a person, lawful processing, purpose and data minimisation, storage limitation and security suited to risk. Does not override applicable retention obligations or determine a specific dataset’s legal status. · Checked 2026-11-08

    Primary original OJ PDF opened 8 November 2026 at https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng/pdf . Read Recital 26, Articles 4(1), 4(5), 5, 6 and 32 for test-data teaching. Existing Article 5 uses remain valid. This is not a complete later-amendment, case-law or national-law audit. Do not infer a universal test-data retention period or permission to copy production data.

  3. 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 data, data needed for the execution of tests (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.

  4. Market practice

    faker.seed() (Faker JavaScript API) ↗ — Faker · r8a-faker-js-seed (faker.seed gives a repeatable sequence); r8a-faker-python-docs (seeds not stable across library upgrades). Search excerpt, page not opened.

    Calling seed with the same value gives the same sequence of fake values. · 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.

  5. Market practice

    Faker documentation (Python) ↗ — Faker · r8a-faker-js-seed (faker.seed gives a repeatable sequence); r8a-faker-python-docs (seeds not stable across library upgrades). Search excerpt, page not opened.

    Seed methods exist per generator; values for a given seed can change when the library is upgraded. · 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.

  6. Market practice

    How do you handle your test data? (Ministry of Testing forum thread) ↗ — Ministry of Testing Club · A forum practitioner describes a master gold copy with every automated and manual run working on a copy. One practitioner view. (search excerpt, page not opened).

    Practitioners describe a master gold copy of data with each run working on a copy of it. Forum opinion. · 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.

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.