TOPIC 42/5118 MINNOT STARTED

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.

  1. Pick one value
  2. List where it is set and read
  3. Find clear routes
  4. Choose tests covering the required pairs
Follow the milk from the shop to every cup

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Buying the milkSetting a value
Using the milk in the sauce or the coffeeReading the value
Using milk you never boughtReading a value before it was set
Pouring it away, then using itUsing 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.

What each part of the trick stands for
In the trickWhat it stands for
SetWhere a value is set, like buying the milk
ReadWhere it is read, like using the milk in the sauce
PairA 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
  1. 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.

    1982 primary data-flow criteria paper; definition-clear links, all-uses and loop-free all-DU-paths. Complete test paths need not be loop-free. · Checked 2026-11-06

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

    Per the search excerpt, the paper argues that test choices based on control flow alone are not enough, and defines test selection criteria that link each place a variable is set to the places it is used. A conference paper by the same authors appeared in 1982. The paper text was not opened. · Checked 2026-10-18

    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.

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

    University lecture slides. Per the search excerpt, a definition-use pair links where a value is set to where it is read; all-defs needs every definition to reach at least one use; all-uses needs every definition to reach every use it can reach; all-du-paths is the strongest; infeasible paths often make full coverage unattainable. Teaching material, not a standard. · Checked 2026-10-18

    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.

  3. Market practice

    Data flow testing (lecture slides, York University) ↗ — York University · Predicate use and computation use; definition-clear paths (search excerpt, page not opened)

    University lecture slides. Per the search excerpt, a predicate use is a use in a decision, a calculation use is a use in a calculation, and a path from a definition to a use with no other definition of the variable on it is called definition-clear. Teaching material, not a standard. · Checked 2026-10-18

    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.

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

    Per the search listing, the report covers data-flow anomalies written as pairs of actions: define, kill and use. Only the search listing was seen, so the title is given as the listing showed it. Academic report, not a standard. · Checked 2026-10-18

    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.

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

    Version 4.0 syllabus (footer date 2021-06-30), read in full text. Used for the objective ids, the review checklists in sections 5.2.1 and 5.2.2, dynamic and static analysis, white-box detail and compatibility. Paraphrased, not quoted. · Checked 2026-10-18

    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.

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

    Third-party study site. Per the search excerpt it gives the glossary entry as a form of static analysis based on the definition and use of variables. The official glossary was not reached, so the wording must be checked against it. · Checked 2026-10-18

    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.

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

    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.

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

    1982 primary data-flow criteria paper; definition-clear links, all-uses and loop-free all-DU-paths. Complete test paths need not be loop-free. · Checked 2026-11-06

    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.