3
The Differences Between Black Box Testing and White Box Testing are listed below. Criteria Black Box Testing White Box Testing Definition Black Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is NOT known to the tester White Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is known to the tester. Levels Applicable To Mainly applicable to higher levels of testing:Acceptance Testing System Testing Mainly applicable to lower levels of testing:Unit Testing Integration Testing Responsibility Generally, independent Software Testers Generally, Software Developers Programming Knowledge Not Required Required Implementation Knowledge Not Required Required Basis for Test Cases Requirement Specifications Detail Design Difference between white box testing and black box testing: White box testing: White box testing is done by the Developers. This requires knowledge of the internal coding of the software. White box testing is concerned with testing the implementation of the program. The intent of this testing is not to exercise all the different input or output conditions, but to exercise different programming structures and data structures used in the program. It is commonly called structural testing. White box testing mainly applicable to lower levels of testing: Unit testing and Integration Testing. Implementation knowledge is required for white box testing. Black box testing: Black box testing is done by the professional testing team. This does not require knowledge of internal coding of the application. Testing the application against the functionality

Differences between black box testing and white box testing

Embed Size (px)

Citation preview

Page 1: Differences between black box testing and white box testing

The Differences Between Black Box Testing and White Box Testing are listed below.

Criteria Black Box Testing White Box Testing

Definition

Black Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is NOT known to the tester

White Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is known to the tester.

Levels Applicable To

Mainly applicable to higher levels of testing:Acceptance Testing

System Testing

Mainly applicable to lower levels of testing:Unit Testing

Integration Testing

ResponsibilityGenerally, independent Software Testers

Generally, Software Developers

Programming Knowledge

Not Required Required

Implementation Knowledge

Not Required Required

Basis for Test Cases

Requirement Specifications Detail Design

Difference between white box testing and black box testing:

White box testing:

White box testing is done by the Developers. This requires knowledge of the internal coding of the software.

White box testing is concerned with testing the implementation of the program. The intent of this testing is not to exercise all the different input or output conditions, but to exercise different programming structures and data structures used in the program. It is commonly called structural testing.

White box testing mainly applicable to lower levels of testing: Unit testing and Integration Testing.

Implementation knowledge is required for white box testing.

Black box testing:

Black box testing is done by the professional testing team. This does not require knowledge of internal coding of the application. Testing the application against the functionality of the application without the knowledge of internal coding of the software.

In Black box testing the structure of the program is not considered. Test cases are decided solely on the basis of the requirements or specification of the program or module.

Black box testing mainly applicable to higher levels of testing: Acceptance Testing and System Testing.

Implementation knowledge is not required for black box testing.

What’s the difference between white and black box testing?

Black-box testing is a way of testing software without having much knowledge of the internal workings of the software itself. Black box testing is often referred to as behavioral testing, in the

Page 2: Differences between black box testing and white box testing

sense that you want to test how the software behaves as a whole. It is usually done with the actual users of the software in mind, who usually have no knowledge of the actual code itself.

White box (aka clear box), on the other hand, is testing of the structural internals of the code – it gets down to the for loops, if statements, etc. It allows one to peek inside the ‘box’. Tasks that are typical of white box testing include boundary tests, use of assertions, and logging.

Difference Between Black-box and White-box Testing

Black-Box Testing1- Black Box means opaque object or box where we can’t see the internal structure.In Black box testingwe only concentrate on Input and output.2- Black-box test design is usually described as focusing on testing functional requirements. So we normally testthe functionality of software without going deep in to its code and structure3- Techniques that is used in Black Box testing

1. Boundary-value analysis 2. Error guessing 3. Race conditions 4. Cause-effect graphing 5. Syntax testing 6. State transition testing 7. Graph matrix 8. Equivalence partitioning

4- Best example of Black box testing is Search on Google. User just enters keywords and get the expected results in turn.End user never take tension to see what is behind this screen that is employed to fetch these results.5- Technical background is not the necessity of Black-Box Tester.

 

White-Box Testing1- White-Box testing is also known as clear box testing, glass box testing, transparent box testing, and structural testing.2- White-Box testing deals with the internal structure and the internal working rather than only functionality.3- For White-Box testing, programming background is must because this helps in creating test cases for white-box testing.4- White-box testing is applied for Unit testing, integration testing and sometime in it is also used for system testing.5- These are few techniques that are used in white box testing

1. Code Coverage 2. Segment coverage: This is done to

ensure that all statement or each line of code has been executed

3. Compound condition coverage and loop coverage: In this we test all the conditions and all the branching and loops in code

4. Data Flow testing: we test all the intermediate steps, in this we test how sequential steps behave

5. Path Testing: In this we test all the path that is defined in code

6- Through White-Box testing, tester detects all logical errors, design error and Typographical error.