White Box Testing is also known as glass box, structural, clear-box and open-box testing.
White Box Testing is a software testing methodology whereby definite information of the inner workings of the tested item is used to choose proper test data.
The test is correct only in that case if software tester recognizes what the program is supposed to do. Tester can then see if the program deviates from its purpose.
White box testing does not compute for defects caused by neglect, and all visible code must also be readable.
Benefits of Glass Box Testing:
- reveals defects in “hidden” code
- beneficent side-effects
- approximates the partitioning done by execution equivalence
- forces test developer to reason carefully about implementation
Shortcomings of Glass Box Testing:
- miss cases omitted in the code