Please support us

Thursday, July 19, 2012

Differences between Black box testing and white box testing


Black box testing and white box testing can compare as follows,
 

Black box testingWhite box testing
Focuses on the functionality of the systemFocuses on the structure of the system
 Black box testing is used to find internal functionalities like conditional loops and statement coverage. But white box testing is used to find External functionalities of software. 

Black box testingWhite box testing
Begin early in the software developmentWait 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 testingWhite box testing
Treats the system as a "black-box"Treats the system as a "open-box"
According to the black box testing it doesn't explicitly use knowledge of the internal structure. So test design treats the system as a "black-box". But according to the White box testing it allows see the code. So system is like an "open box"
 

Black box testingWhite box testing
Can test performanceCan't test performance
In Black box testing we can test the performance. But in white box testing we can not test performance of the application.
 

Black box testingWhite box testing
Concerned with the external viewConcerned with the internal view
Normally white box testing is concerned with the internal view of the system. But Black box testing is concerned with the external view of the system.

Black box testingWhite box testing
Functional knowledge.Structural knowledge
Whit box testing goes with structural knowledge but when we concern about the black box testing, we can identify that black box testing is moves with functional knowledge.
 

Black box testingWhite 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 testingWhite box testing
Test the functionalityTest 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 testingWhite box testing
Related to logicRelated 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 testingWhite box testing
Whether the system is giving expected output or notWhether 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 testingWhite box testing
Tester can be non technicalTester 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.  

1 comment:

  1. Thanks for the good comparision.
    White 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.

    ReplyDelete

We need your comments