Black box testing and white box testing can compare as follows,
Black box testing | White box testing |
Focuses on the functionality of the system | Focuses on the structure of the system |
Black box testing | White box testing |
Begin early in the software development | Wait for the designing has to complete |
Normally Black box testing will begin early in the software development.But when concern about the white box testing approach, this approach has to wait for the designing has to complete.
Black box testing | White box testing |
Treats the system as a "black-box" | Treats the system as a "open-box" |
Black box testing | White box testing |
Can test performance | Can't test performance |
Black box testing | White box testing |
Concerned with the external view | Concerned with the internal view |
Black box testing | White box testing |
Functional knowledge. | Structural knowledge |
Black box testing | White box testing |
In Black box it's a selection of sample test cases. But in White box we have to write large quantity of test
Black box testing | White box testing |
Test the functionality | Test the internal implementations work. |
In Black Box Testing tester will test the functionality. That means it check the behavior of the device under test. In White Box Testing tester will test how internal implementations work.
Black box testing | White box testing |
Related to logic | Related to interface |
Normally in white box testing programming Logic is tested. It is supposed to check each line of code. When concern about the Black box testing we can identify that, Black box testing is basically related to system interface and it tests what system is supposed to do.
Black box testing | White box testing |
Whether the system is giving expected output or not | Whether the control flow in the program is correct or not |
White box it checks whether the control flow in the program is correct or not. But in Black box testing it checks whether the system is giving the expected output or not. However black box testing not going to concern about how the output is generated.
Black box testing | White box testing |
Tester can be non technical | Tester should be technical |
Black box testing is done by non technical .But in white box testing we are moving with codes. So he/she needs to have a good technical knowledge and skills.
Thanks for the good comparision.
ReplyDeleteWhite box traditionally is testing the code from the services or api layer bypassing a lot the front end GUI. It can also be used for unit testing different components without having the whole system running. Scripting or coding is usually a requirement.
Black Box Testing is testing in the manner a user uses the software, without deep knowledge of how the software works internally. Given that the tester is trying to duplicate user behavior, this testing is closest to what a user might discover.