Structural Testing
Structural Testing
Structural Testing
• It is considered more technical than functional testing. It attempts to design test case from the
source code , not from specifications .
• It also gives insight in to the source code which may be used as an essential knowledge for the
design of test cases.
• Structural testing techniques are also known as white box testing techniques due to consideration
of internal structure and other implementation details of the program.
Structural Testing
• Q. Try Consider the program for the determination of the division of a student. Derive test cases so that 100%
path coverage is achieved.(Program and program Graph is given in Software Testing by Yogesh Singh P.No-
130)
Data Flow Testing
• It is based on variables, their usage and their definition in the program. The main points of
concern are:
(i) Statements where variables receive values (definition).
(ii) Statements where these values are used (referenced).
• (iii) Generate all du-paths from define/use variable table of step (iii) using the following format:
A 6,11
6,12
6,13
B 8,11
8,20
8,24
C 10,12
10,16
10,20
10,21
Data Flow Testing(continued) Example