Data-flow testing and def-use coverage
Follow one value from where it is set to every place it is read, and test each pair. It finds bugs that full branch coverage can miss.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: following the milk through a recipe. You buy milk at the shop. The recipe uses it in the sauce, and again in the coffee. A good cook asks: was the milk bought before anything used it? Was every bit of milk bought actually used? And did anyone pour it away and then try to use it again?
Daily List is a to-do list app. A task has a due date, and the date is used in many places. It decides when the reminder goes out. It decides if the task shows as overdue. It is also shown on the screen. Tom, the tester, picks one value, the due date, and follows it through the code.
This is data-flow testing. Instead of asking which lines or branches a test runs, it asks where a value is set and where it is read. The chosen coverage criterion says which definition-to-use journeys the must exercise. A single test may cover several pairs.
The picture has limits. Milk is used once, and then it is gone. A value in code can be read many times. A recipe also follows one path, but code has several, and each can change the value.
(SYNTHETIC / TRAINING ONLY: Daily List, its reminder rules 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 A way to choose tests by following each value from where it is set to every place it is read.
- Pick one value
- List where it is set and read
- Find clear routes
- Choose tests covering the required pairs
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Buying the milk | Setting a value |
| Using the milk in the sauce or the coffee | Reading the value |
| Using milk you never bought | Reading a value before it was set |
| Pouring it away, then using it | Using a value after it was cleared |
WHERE THIS PICTURE STOPS
- Milk is used up. A value in code can be read many times.
- A recipe follows one path. Code has several paths, and each can change the value.
- A cook sees the milk. Code hides values in other functions, and a tool or a diagram is needed.
- The chosen criterion determines the required journeys. One test may cover several pairs; all-uses does not always need more cases than all-defs.
HOOK
Follow the milk from the shop to every cup.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Set and read make a pair: for the due date, list where it is set, list where it is read, then test each pair.
| In the trick | What it stands for |
|---|---|
| Set | Where a value is set, like buying the milk |
| Read | Where it is read, like using the milk in the sauce |
| Pair | A definition-to-use coverage item; one test can cover several items |
TELL A FRIEND
Follow one value like a carton of milk. Test every journey from where it is bought to every cup it reaches.
OFTEN MIXED UP WITH Branch coverage. counts graph transfers. Data-flow coverage counts a definition reaching a use along a clear path.
Sources & standards — 1 source
- Market practice
Data Flow Analysis Techniques for Test Data Selection ↗ — Sandra Rapps and Elaine J. Weyuker; primary paper, university-hosted copy · Rapps and Weyuker, Data Flow Analysis Techniques for Test Data Selection (1982), printed pages 274–276; university-hosted primary PDF opened and pages 274–275 visually inspected 6 November 2026. Definition-clear routes, all-defs/all-uses and loop-free all-DU paths; a coverage item is not a distinct test case. Daily List d0/d1 example is synthetic.
Full primary PDF opened 6 November 2026. University-hosted copy, not publisher hosting. Distinguish this conference paper from the related 1985 journal article. Paraphrased, not quoted.
PRACTISE AND KEEP
Sources for this topic — 8 sources
- Market practice
Selecting Software Test Data Using Data Flow Information (Rapps and Weyuker, journal paper, 1985) ↗ — Institute of Electrical and Electronics Engineers (IEEE) · Selecting software test data using data flow information: criteria that link each place a variable is set to the places it is used, since control flow alone is not enough (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: IEEE Transactions on Software Engineering, volume SE-11, number 4, April 1985, pages 367 to 375. 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
Data flow coverage (W04 lecture slides, University of Waterloo) ↗ — University of Waterloo · Definition-use pairs; all-defs, all-uses and all-du-paths in rising strength; infeasible paths often make full coverage unattainable (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Lecture slides; 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
Data flow testing (lecture slides, York University) ↗ — York University · Predicate use and computation use; definition-clear paths (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Lecture slides, 2009 to 2010 course. 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
North Carolina State University technical report TR-2006-22 (data flow anomalies) ↗ — North Carolina State University · Data-flow anomalies as pairs of actions: define, kill, use (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Technical report 2006-22. 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 Advanced Level Technical Test Analyst (CTAL-TTA) Syllabus v4.0 ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, 30 June 2021), version checked against the document's own front matter, read in full text: section 3.2 Static Analysis lists control flow analysis (3.2.1), data flow analysis (3.2.2, objective TTA-3.2.2, K3) and static analysis for maintainability (3.2.3)
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, dated 2021-06-30 in its footer), 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.
Specialist review 6 November 2026: Actual CTAL-TTA4.0 §3.3 dynamic-analysis body reviewed; no claim of a full-syllabus review. Professional certification guidance, not binding legislation or a formal ISO standard. Inherited full-text descriptions are not a claim that this audit read every PDF page.
- Market practice
Data flow analysis (ISTQB glossary entry as shown on SoftwareTestPilot) ↗ — SoftwareTestPilot · Data flow analysis: a form of static analysis based on the definition and use of variables (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
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Foundation v4.0.1 section 4.3.2, printed p.43; full primary passage read 2026-10-24. Used only for the branch-coverage comparison; the data-flow example is 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 practice
Data Flow Analysis Techniques for Test Data Selection ↗ — Sandra Rapps and Elaine J. Weyuker; primary paper, university-hosted copy · Primary paper, university-hosted PDF opened 6 November 2026; criteria section pp. 275–276. All-uses and loop-free definition-clear all-DU-paths. The Daily List d0/d1 example is synthetic.
Full primary PDF opened 6 November 2026. University-hosted copy, not publisher hosting. Distinguish this conference paper from the related 1985 journal article. Paraphrased, not quoted.
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.