Test harness

From Wikipedia, the free encyclopedia

Test Harness a.k.a ATF (Automated Test Framework)

In software testing, a test harness is a collection of software and test data configured to test a program unit by running it under varying conditions and monitor its behavior and outputs. It has two main parts namely, Test execution engine and the test script repository.

Test harnesses should include the following capabilities:

  • A standard way to specify setup (i.e., creating an artificial runtime environment) and cleanup.
  • A method for selecting individual tests to run, or all tests.
  • A means of analyzing output for expected (or unexpected) results.
  • A standardized form of failure reporting.