Watch This Video
Testing that takes into account the internal mechanism [structure] of a system or component. Types include branch testing, path testing, statement testing.
Structural testing, it is sometimes called glass box, usually follows specification-based tests to ensure thoroughness of coverage. Full structured testing is very thorough but time-consuming, and is often mandated in safety-critical system such as life support machines.
Coverage measurement applies at all levels, as any aspect of a system which can be represented in a structural diagram can be used as the basis for structural testing.
- Program code design: coverage of statement, decisions, paths
- Component hierarchy diagram: coverage of component interfaces
- Web pages structure: coverage of page navigation