Print Page | Close Window

All about White Box Testing

Printed From: One Stop Testing
Category: Types Of Software Testing @ OneStopTesting
Forum Name: Functional Testing @ OneStopTesting
Forum Discription: Discuss All that is need to be known about Functional Software Testing and its Tools.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6475
Printed Date: 02Dec2024 at 8:57am


Topic: All about White Box Testing
Posted By: yogindernath
Subject: All about White Box Testing
Date Posted: 25May2009 at 9:06am
Firstly let us understand the meaning of White Box Testing.

White box testing is a way of testing the external functionality of the code by examining and testing the program code that realizes the external functionality. It is a methodology to design the test cases that uses the control structure of the application to design test cases. White box testing is used to test the program code, code structure and the internal design flow.

A number of defects get amplified because of incorrect translation of requirements and design into program code. Let us see different techniques of white box testing.

Primarily White Box Testing comprises of two sub-streams of testing like:


1) Static White box Testing

2) Dynamic White box Testing


Static White box testing: It is a type of testing in which the program source code is tested without running it. We only need to examine and review the code. It means that we need not execute the code. We need to find out whether

a)The code works according to the functional requirements.

b)The code has been written in accordance with the design developed earlier in the project life cycle.

c) The code for any functionality has been missed out.

d) The code handles errors properly.

Static testing can be done by human being or with the help of specialized tools. Thus we can define static white box testing as a process involving a methodical & careful examination of the software architecture, basic design or its code with a view to hunt for bugs without executing it. It is called structural analysis as well sometimes.

Dynamic white box testing: This involves testing a running program. So, now binaries and executables are desired. We try to test the internal logic of the program now. It entails running the actual product against some pre-designed test cases to exercise as much of the code as possible.

Some of the key Dynamic White Box Testing processes are as under:

Unit / Code Functional Testing:
It is the process of testing in which the developer performs some quick checks prior to subjecting the code to more extensive code coverage testing or code complexity testing. It can be performed in many ways

a) At the initial stages, the developer or tester can perform certain tests based on the input variables and the corresponding expected output variables. This can be a quick test. If we repeat these tests for multiple values of input variables also then the confidence level of the developer to go to the next level increases.

b) For complex modules, the tester can insert some print statements in between to check whether the program control passes through all statements and loops. It is important to remove the intermediate print statements after the defects are fixed.

c) Another method is to run the product under a debugger or an Integrated Development Environment (IDE). These tools involve single stepping of instructions, setting break points at any function or instruction.

All these initial tests, actually fall under "Debugging" category rather than under “'Testing" category of activities. These are placed under "White Box Testing" head as all are related to the knowledge of code structure.

Complete Article is available at:
http://www.softwaretestinggenius.com/hotarticles.php?mode=details&qry=392 - http://www.softwaretestinggenius.com/hotarticles.php?mode=details&qry=392

We are bringing out many exciting Articles & Tutorials on White Box Testing – which any tester would aspire to have hands on.



-------------
http://www.softwaretestinggenius.com - http://www.softwaretestinggenius.com
A Storehouse of Complete Knowledge on Software Testing & QA under one Roof



Print Page | Close Window