White Box Testing
# White Box Testing
Testing of implementation details, internal paths and structure. Contrast to Black Box Testing
# Control Flow Testing
# The Control Flow Graph
# Cyclomatic Complexity
Measurement of complexity based on the number of decision points.
# Test Coverage Levels
# Statement Coverage
# Branch Coverage
# Basis Path Coverage
Algorithm for creating basis paths
- Select the baseline path: Reasonably “typical” path of execution. If loops exists, take the path which does not enter the loop.
- For every decision point in the baseline path: 1. Change the outcome 2. This is the new basis path
Infeasible paths may exist due to application logic: minimize them by changing multiple decision points at once.
# Path Coverage