SQAT - Ch.08 - Data Flow Testing
SQAT - Ch.08 - Data Flow Testing
COURSE NAME
DATA FLOW TESTING
SOFTWARE
SOFTWARE
QUALITY AND
ENGINEERING
TESTING
(UNDERGRADUATE
CSC 4133
)
(UNDERGRADUATE
)
Chapter 8: Data Flow Testing
MMH S.2
x = f1(y);
x = f2(z);
Four interpretations of above example
The first statement is redundant
The first statement has a fault -- the intended one might be: w = f1(y);
The second statement has a fault – the intended one might be: v = f2(z);
There is a missing statement in between the two: v = f3(x);
Note: It is for the programmer to make the desired interpretation
Chapter 8: Data Flow Testing
MMH S.6
State U: Undefined
s D: Defined but not referenced
R: Defined and referenced
A: Abnormal
Actio d: define the variable
ns r: reference/read the variable
u: undefine the variable
Chapter 8: Data Flow Testing
MMH S.9
REFERENCES
Software Testing And Quality Assurance – Theory and Practice - Kshirasagar Naik
& Priyadarshi Tripathy
Software Quality Engineering: Testing, Quality Assurance and Quantifiable
Improvement - Jeff Tian