Slides 20 - Control Flow Based Glass Box Testing Flashcards
Test coverage
Degree, expressed as a percentage, to which specified test coverage items have been exercised by a test case or test case suite
Control flow diagram
Diagram that depicts the set of all possible sequences in which operations can be performed during the execution of a system or program
(Diagramm, das die Menge aller möglichen Sequenzen darstellt, in denen Operationen während der Ausführung eines Systems oder Programms ausgeführt werden können)
Control flow based coverage
● Statement coverage
● Branch coverage
● Decision coverage
● Path coverage
What does Branch coverage demands?
Branch coverage demands that every edge (branch) of the CFG is executed by at least once.
Variants of Condition Coverage
● Basic Condition Coverage
● Branch and Condition Coverage
● Modified Condition Decision Coverage
● Compound Condition Coverage
Branch Coverage Guarantees
● complete branch coverage
● basic condition coverage
Compound Condition Coverage
Compound condition coverage requires the test of all possible combinations of basic conditions
Path Coverage
Path coverage requires that every path in the control flow graph of a program is exercised by a test case.
- Full path coverage is not feasible!
Practical criterion for Path Coverage
● limiting the number of traversals of loops
● avoids the path explosion caused by loops
Approaches to Path Coverage
● Path coverage
● Structured path coverage
● Boundary-interior coverage