Skip to Content
Foundations of Software Testing, 2nd Edition
book

Foundations of Software Testing, 2nd Edition

by Aditya P. Mathur
May 2013
Intermediate to advanced
728 pages
19h 29m
English
Pearson India
Content preview from Foundations of Software Testing, 2nd Edition

7.4  Adequacy Criteria Based on Data Flow

To be able to construct test adequacy criteria based on sets dpu and dcu, we first define some notions related to coverage. In the definitions below we assume that the data flow graph of P contains k nodes where nodes n1 and nk represent the start and end nodes, respectively. Some node s in the data flow graph of program P is considered covered by test case t when the following complete path is traversed upon the execution of P against t,

(ni1 , ni2 , . . . , nim−1 , nim)

and s = nij for some 1 ≤ j m and m k, i.e. node s lies on the path traversed. Similarly, an edge (r, s) in the data flow graph of P is considered covered by t upon the execution of P against t, when the path listed above is traversed ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Testing Foundations, 4th Edition, 4th Edition

Software Testing Foundations, 4th Edition, 4th Edition

Andreas Spillner, Tilo Linz, Hans Schaefer
The Art of Software Testing, Second Edition

The Art of Software Testing, Second Edition

Glenford J. Myers, Corey Sandler, Tom Badgett, Todd M. Thomas

Publisher Resources

ISBN: 9788131794760