What is White-box testing
Description: White-box Testing is a type of testing method where the tester (a developer testing the application) is aware of the system internals. Its implementation is transparent. The tester is required to know the internal workings of the code. The objective is to ensure that each and every line of the code is tested. The tester detects all logical, design and typographical errors. The tester also needs to validate the internal structure of the item under consideration along with the output.
Consider this example: If (i 6 && j 7) do this; else do that; If the test case i= 4 and j= 8 is given as input, only the true condition is met and the code executed. A test case that makes the condition false also need to be given, such as i = 7 and j = 4.
White-box testing is also known as 'structural testing', 'open box testing' and 'glass box testing'. It is mainly applicable at lower levels of the testing process.
Techniques that are used in white-box testing include: 1. Data flow testing, 2. Branch testing, 3. Path testing, 4. Statement coverage, and 5. Decision coverage. The main aim of white-box testing is to check how the system is performing. It is much more involved than black-box testing. White-box testing is a must for developing highly reliable software.