Interview Question : What is Black Box Testing?
Answer : Black box testing is easy to use, as the tester does not have to be bothered about the internal workings of the software. The test cases have to be written around the application, exactly the way the end user would use the application. However, with white box testing, the tester has to look inside the application and design the test cases.Since the tester is only concerned about the interface, the task of designing test cases in black box testing does not take very long, as the internal paths do not have to be identified as is the case with white box testing. The task of testing is simplified, as the focus of attention is only the valid and invalid inputs and the outputs received. However, in white box testing digging into the application helps in thorough testing of the application, which is not possible with black box.The other difference between white box and black box testing is that in black box testing a script is used to test the application. When the interface changes, the valid and invalid input and the output also changes, due to which it becomes very difficult to maintain a script. However, with white box testing, the objects to be tested are identified programatically, which proves to be useful in changing interface scenarios.To conclude the debate on the white box and black box testing, we can say that both the testing types are necessary to test the application. How long and how much should the application be tested using each of these methodologies will depend on the application that is being tested and also the objective of the application.
Interview Question Category : Functional: Black Box and White Box