Brendan Ang

Search

Search IconIcon to open search

White Box Testing

Last updated Nov 8, 2022 Edit Source

# 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

  1. Select the baseline path: Reasonably “typical” path of execution. If loops exists, take the path which does not enter the loop.
  2. 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