Structure based testing is a strategy in which testing is based solely on the internal working and structure of the code. Testing is based on the internal paths, structure, and implementation of the software under test (SUT). In contrast to its complement, black box testing, it generally requires detailed programming skills.
Structure based testing is commonly referred to as "white box testing". It is also called as "Glass box" or "Clear Box" testing.
Process involved in white box testing are follows:
Notre: The tester must have programming skill to understand and evaluate the SUT.Structure based testing is commonly referred to as "white box testing". It is also called as "Glass box" or "Clear Box" testing.
Process involved in white box testing are follows:
- Analyze the SUT's implementation and then identify paths through the SUT.
- Choose the inputs to cause the SUT to execute selected paths. Expected results for those inputs are determined.
- Execute the tests. Actual outputs are compared with the expected outputs.
- A determination is made as to the proper functioning of the SUT.
White box testing comprises following techniques under static and structural testing:
Desk checking
Code walkthrough
Formal or fagan inspection
statement coverage
Flow graph and path testing
Data flow testing
syntax testing