Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

White Box Testing...

So my dear friends in my previous blog i have explained about unit testing.. today i am going to tell you about white box testing..

So  let's start white box testing is also known as clear box, glass box or  structural testing is is a testing technique in which code is evaluated and internal structure of program as well.

It is a part of black box testing.

White box testing is done by both developers as well as testers. here line of code are executed to check that application is meeting its expectation or not. here each line of code is properly checked to avoid future consequences.




Lets see the steps how can we perform white box testing..

Step 1 : For understanding the applications source code tester should have programming language knowledges and with that tester should well versed with other tools and techniques which are used to develop the software.

Step 2 : By creating test cases and executing them. here it is done for maximum Coverage of white box testing.

Lets see the types of white box testing.
There are basically three types of white box testing.
1. Statement Coverage
2. Branch Coverage
3. Path Coverage




So let's see each of them in depth.

1. Statement Coverage : In each and every programming language statements are the methods which are validated here each and every line is compiled and executed to know the error. here only one test case is required to check all the lines of code.

2. Branch Coverage : Here branch coverage is totally dependent of true and false like we have if-else statement. branch coverage can be also known as decision coverage. there can be possibly two condition either true or false.
branch coverage is done to check that looping is properly working or not.

Branch coverage ensures more coverage than statement coverage. branch coverage is more powerful than statement coverage. 100% branch coverage it self means 100% statement coverage but 100% statement coverage does not guarantee 100% branch coverage.

3. Path Coverage :  there are 2 statements so for each decision staement we need to perform branch coverage. One for the true and one for the false..
for this we need 2 test cases to test true side and 2 for false side which makes total 4 test cases.

So thats it for this blog black box testing will be explained in next blog.
for eg. INPUT P & Q
R = P - Q
IF P>100
PRINT "SUCCESS"
END IF
IF P>50
PRINT "PENDING"
END IF


This post first appeared on Path For Testing Software, please read the originial post: here

Share the post

White Box Testing...

×

Subscribe to Path For Testing Software

Get updates delivered right to your inbox!

Thank you for your subscription

×