Wednesday, March 4, 2009

Testing Methods

Software Testing methods are traditionally divided into black-box testing and white-box testing.

Black-box/Behavioral testing is based on requirements and functionality. It is not based on any knowledge of internal design or code.
Example: User Acceptance Testing (UAT) and Systems Testing.
An example of Black- box testing is testing Search option. Use different data sets and see how the search option is working.

White-box/Glass-box testing relies on analyzing the code itself and the internal logic of the software.It uses techniques which range from highly technical or technology specific testing to things like code inspections.
Although white-box techniques can be used at any stage in a software product's life cycle, they tend to be found in Unit Testing activities.
It requires programming skills to identify all paths through the software. The tester chooses test case inputs to exercise paths through the code and determines the appropriate outputs

Typical white box test design techniques include

  • Control flow testing
  • Data flow testing
  • Branch Testing
There are principally three different possibilities of program testing

  • program internally, to check completeness and consistency
  • considering pre-defined rules
  • comparing the program with its specification or documentation.
White box testing:As with glass-box testing, you should test your code with each set of test data

2 comments:

  1. Would have been better if it is elaborated some more - Will be still worth in case of providing some examples !!

    ReplyDelete
  2. Thanks for your comments and have added some more points.

    ReplyDelete