White box Testing is a kind of software testing in which the tester tests the application internally; no doubt the programmer must have programming skills so that he can do the job of testing perfectly. Using white box testing, we can design test cases.
These test cases do testing not only for independent paths within a module but also examines if any bug that might exist between paths of two units. White box testing is also known as clear box testing and glass box testing.
That is because the internal working of the application is visible to us. For white box testing, programmers write a software module which is then used in testing the application we want to test.
The software module which is designed for testing our application is called a driver. Programmers use these drivers and stubs in white box testing.
A stub is actually a computer program statement which is a dummy component used for simulation purposes. It simulates the behavior of real components.
Stubs can be used temporarily. If a programmer wants to call a method in the code he can use the stub method. A White box test includes the analysis of data flow, control flow and information flow.
It also deals with the practices of coding. Under white box testing we check whether the software which is under test is functioning normally or not.
How to perform White box testing?
The first step in white box testing is to analyze the designed application and its source code as well. The first step is to analyze how can we make our software secure. Secondly, programmers must design a module which can crash the software. The tester must know about all the tools and techniques of white box testing.
Testing techniques
Basis Path TestingBasis Path testing ensures that all independent paths through a code module have been tested. To do Basis path Testing, we usually make flow charts so that we can compute the number of independent paths through the code. Basis path testing looks at the decision points in the application.
Control Flow testing
In Control flow testing, we consider the control flow of the program. This control flow can be represented in a flow graph.
Data Flow testing
Data flow testing is applied for selected variables. This is done so that we can understand the program better. A Data flow analysis for an entire program needs a lot of computational resources.
Steps in white box testing are:
Sonakshi SinghPosted Feb 9, 2012, 12:31 AM
O Thank you so very much Jawed for encouraging meh... I will surely try to give best of my efforts.
Jawed MohammedPosted Feb 8, 2012, 12:19 PM
Thats a nice way to explain white box testing..good one!! adding Disadvantages of White-box Testing and conclusion was good idea.. keep it up Sonakshi!! ~jawed