alt
Advertisement
Online Training
Career Series
Exforsys
Exforsys arrow Tech Articles arrow Testing arrow Software Testing : Black box and White box Techniques
Site Search


Software Testing : Black box and White box Techniques

Black-box and white-box are test design methods. Black-box test design treats the system as a "black-box", so it doesn’t explicitly use knowledge of the internal structure. Black-box test design is usually described as focusing on testing functional requirements. White-box test design allows one to peek inside the "box", and it focuses specifically on using internal knowledge of the software to guide the selection of test data.

While black-box and white-box are terms that are still in popular use, many people prefer the terms "behavioral" and "structural". Behavioral test design is slightly different from black-box test design because the use of internal knowledge isn't strictly forbidden, but it's still discouraged. In practice, it hasn't proven useful to use a single test design method. One has to use a mixture of different methods so that they aren't hindered by the limitations of a particular one. Some call this "gray-box" or "translucent-box" test design, but others wish we'd stop talking about boxes altogether.

It is important to understand that these methods are used during the test design phase, and their influence is hard to see in the tests once they're implemented. Note that any level of testing (unit testing, system testing, etc.) can use any test design methods. Unit testing is usually associated with structural test design, but this is because testers usually don't have well-defined requirements at the unit level to validate.

What is Black box Software Testing?

It is a software testing technique whereby the internal workings of the item being tested are not known by the tester. For example, in a black box test on software design the tester only knows the inputs and what the expected outcomes should be and not how the program arrives at those outputs. The tester does not ever examine the programming code and does not need any further knowledge of the program other than its specifications.

The advantages of this type of testing include:

· The test is unbiased because the designer and the tester are independent of each other.

· The tester does not need knowledge of any specific programming languages.

· The test is done from the point of view of the user, not the designer.

· Test cases can be designed as soon as the specifications are complete.

The disadvantages of this type of testing include:

· The test can be redundant if the software designer has already run a test case.

· The test cases are difficult to design.

· Testing every possible input stream is unrealistic because it would take an inordinate amount of time; therefore, many program paths will go untested.

Black box Software Testing Full Lecture Notes

What is a White box Software Testing?

This is a software testing technique whereby explicit knowledge of the internal workings of the item being tested is used to select the test data. Unlike black box testing, white box testing uses specific knowledge of programming code to examine outputs. The test is accurate only if the tester knows what the program is supposed to do. He or she can then see if the program diverges from its intended goal. White box testing does not account for errors caused by omission, and all visible code must also be readable.

(Includes both Black and White box techniques)
Note: For a complete software examination, both white box and black box tests are required.

Trackback(0)
Comments (3)add comment

maheshkore said:

  Hi
I was trying to download the BBSTonPDF but i was unable to download this . Can anybody help me to download this file. Hope u will help me for that.
Thatx in advance.
August 04, 2005

mohankz said:

  [EMAIL] This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ; This e-mail address is being protected from spam bots, you need JavaScript enabled to view it [/EMAIL]'; document.write( '' ); document.write( addy_text22222 ); document.write( '<\/a>' ); //-->\n This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

Jst for ur info..
September 09, 2005

mohankz said:

  [EMAIL] This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ; This e-mail address is being protected from spam bots, you need JavaScript enabled to view it [/EMAIL]'; document.write( '' ); document.write( addy_text22222 ); document.write( '<\/a>' ); //-->\n This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

Jst for ur info..
September 09, 2005

Write comment

busy
 
< Prev   Next >
Sponsored Links
© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape