Structural Testing
Def: judging test suite thoroughness based on the structure of the program itself
Also known as white-box testing Distinguish from functional testing (black-box testing) structural testing is still testing product functionality against its specification only the measure of thoroughness has changed Why need structural testing:
Executing all control flow elements does not guarantee finding all faults Increase confidence in thoroughness of testing Practical use:
Firstly create functional test suite Then measure structural coverage to identify see what is missing Statement testing & Branch testing Statement testing: