Module-3 ST (Part-2) - Path & Data Flow Testing - T1
Module-3 ST (Part-2) - Path & Data Flow Testing - T1
PATH TESTING
Program Graphs
V(G) = e – n + 2p
Table shows the edges traversed by each path, and also the
number of times an edge is traversed:
McCabe’s Basis Path Method…
equilateral
scalen
Data Flow Testing
• Data flow testing refers to forms of structural
testing that focus on the points at which
variables receive values and the points at
which these values are used (or referenced).
Defining Node:
usage node:
definition/use path:
definition-clear path :
Example:
commission problem
Du-paths for Stocks:
we have
DEF(locks, 13), DEF(locks, 19),
USE(locks, 14), USE(locks, 16).
These yield four du-paths.
Define/Use Test Coverage Metrics
Defn:
variables in V at node n.
There are two basic questions about program
slices: