What is white box or Structure-based or structural testing techniques?

Structure-based testing technique is also known as ‘white box testing’ or ‘glass-box’ testing technique because here the testers require knowledge of how the software is implemented, how it works.

  • In white-box testing the tester is concentrating on how the software does it. For example, a structural technique may be concerned with exercising loops in the software.
  • Different test cases may be derived to exercise the loop once, twice, and many times. This may be done regardless of the functionality of the software.
  • Structure-based techniques can also be used at all levels of testing. Developers use structure-based techniques in component testing and component integration testing, especially where there is good tool support for code coverage.
  • Structure-based techniques are also used in system and acceptance testing, but the structures are different. For example, the coverage of menu options or major business transactions could be the structural element in system or acceptance testing.