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 will correct only in that case, if software tester recognizes what the program is supposed to do. Tester can see then, 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 white 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 white box testing:
- Miss cases omitted in the code