Thursday, April 16, 2009

What is Test Harness?

In software testing a test harness or automated test framework is a collection of software and test data configured to test a program unit by running it under varying conditions and monitoring its behavior and outputs.

It has two main parts: the Test execution engine and the Test script repository.
The typical objectives of a test harness are to:
(i) Automate the testing process.
(ii) Execute test suites of test cases.
(iii) Generate associated test reports.

A test harness may provide some of the following benefits:
1) Increased productivity due to automation of the testing process.
2) Increased probability that regression testing will occur.
3) Increased quality of software components and application.

What should a test harness include?
Test harnesses should include the following capabilities:
i) A standard way to specify setup (i.e., creating an artificial runtime environment) and cleanup.
ii) A method for selecting individual tests to run, or all tests.
iii) A means of analyzing output for expected (or unexpected) results.
iv) A standardized form of failure reporting.

No comments:

Post a Comment