This is a basic question asked in many interviews. Lets see the differences in tabular form :
Black Box testing
|
White Box testing
|
Black Box testing is a testing method in which we consider the system
as a black box, we give input and check the output. Here the tester need not
to have the knowledge of internal structure.
|
White box testing is a testing method in which the tester needs to
know the internal structure and design of the system. The system is
considered as white box or glass box.
|
Test Cases are written based on the basis of the requirements.
|
Test cases are written on the basis of detailed design.
|
Programming/Coding knowledge is not required
|
Programming/Coding knowledge is required
|
Also known as functional testing, it is applicable to higher levels
like acceptance and system testing
|
Also known as structural testing , it is applicable to lower level of
testing like unit testing
|
There is a separate team of
Testers to do Black box testing
|
Usually Developers are responsible for White box testing
|
This type of testing always focuses on what
is performing/ carried out
|
This type of testing always focuses on how it
is performing/ carried out
|
External Testing
|
Internal testing
|
Code optimization can’t be done and since the testing is not at
internal level so hidden errors can’t be caught at code level
|
Code Optimization can be done and hidden errors can be discovered.
|
Black box testing techniques are Equivalence partitioning , BVA ,
Error guessing , CE graphing, etc
|
White box testing techniques are path testing , branch testing ,
condition testing , loop testing , etc
|
Implementation knowledge is not required
|
Implementation knowledge is required
|
No comments:
Post a Comment