Free content for your website or blog
Home About Us Article Writing Most Read Articles Authors Blog Wiki Contact Us
RSS Register Login
Topics
 
Home > Computer Software >

White Box Testing

Date Published: 20th May 2008
Bookmark and Share Republish White Box Testing
Author: crestech RSS Views: N/A PRINT ASK ABOUT THIS ARTICLE
White Box testing is done with the code perspective. The emphasis is to ensure that each line of the code is executed atleast once.

Unit Testing: Testing performed to isolate and expose faults and failures as soon as the source code is available, regardless of the external interfaces that may be required. Often times, the detailed design and requirements documents are used as a basis to compare how and what the unit is able to perform. White and black-box testing methods are combined during unit testing.

Can derive test cases to ensure:

1. all independent paths are exercised at least once.
2. all logical decisions are exercised for both true and false paths.
3. all loops are executed at their boundaries and within operational bounds.

4. all internal data structures are exercised to ensure validity.

Why White box testing when black box testing is there to test conformance to requirements
- Logic errors and incorrect assumptions most likely to be made when coding for "special cases". Need to ensure these execution paths are tested.
- May find assumptions about execution paths incorrect, and so make design errors. White box testing can find these errors.
- Typographical errors are random. Just as likely to be on an obscure logical path as on a mainstream path.

"Bugs lurk in corners and congregate at boundaries"

White Box Testing Techniques


1. Basis Path Testing

a. Flow Graph Notation
b. Cyclomatic Complexity
c. Deriving Test Cases

d. Graph Matrices

2. Control Structure testing

a. Conditions Testing
b. Data Flow Testing
c. Loop Testing

http://www.crestechsoftware.com

Visit Discussion Forum For More Software Tips :

http://www.crestechsoftware.com/forum
This article is free for republishing
Source: http://www.articlealley.com/article_540844_11.html
Bookmark and Share Republish White Box Testing

Related Video

Introduction to White Box Testing 1 of 3 Create Custom Shadows Behind Your Graphics - Fi... Speed up your PC using Ccleaner. Bullshit free e-commerce business solutions
 

Ask a Question About this Article

>> The AOL mystuff box has just recently changed it's ...
>> Smoke tolerane policy
>> If you get tested for hepatitas do they check for ...
>> Fratelli paoletti- a small jewelery box made in ...
Powered by