Introduction To White Box Testing
Introduction To White Box Testing
• Static testing, as the name suggests, is used to test the software without compilation.
When the test is performed to check the specifications, it is called static black box
testing.
functionalities. This document is created during the initial stages of the Software
Development Life Cycle (SDLC) based on the input from the customer and designer.
The tester carefully performs static black box testing and checks for bugs.
• The focus of static black box testing is to check for completeness or appropriateness 2
Dynamic Black Box Testing
• Static black box testing is carried out without the tester executing the code, whereas
dynamic black box.
• testing is carried out with data. It is termed “dynamic” since the tester is able to observe
the changes exhibited by the system.
• The test is carried out by providing pre-defined inputs and the outputs are recorded.
These outputs are compared with the correct output, and the variation that exists between
the actual output and desired output are segregated as bugs.
• These tests are carried out using test cases. The test cases have to be defined effectively in
order to find the bugs. The entire test process will depend on the test cases. A software
application undergoes a dynamic black box test. The test case defines that the application
has to produce an output D when the inputs A and B are given. If the application gives an
output C, then the application fails the test case and this is a bug.
3
Test to Pass and Test to Fail
4
Equivalence Partitioning
5
Summary
6
Testing Techniques
Testin
g
Static Dynamic
In White box testing, we evaluates the code and internal structure of the program.
What are the advantages of white box testing?
Research has shown that with all of black box testing techniques , maybe as much
as 70 percent of all of the code in the system might never have been executed
once!
•It is not realistic to be able to test every single existing condition of the application and
some conditions will be untested.
•The tests focus on the software as it exists, and missing functionality may not be
discovered
Why to use White box testing?