What is TEST HARNESS? Tools & Examples
Test Harness in Software Testing
Test Harness in Software Testing is a collection of stubs, drivers and other supporting tools required to automate test execution. Test harness executes tests by using a test library and generates test reports. Test harness contains all the information needed to compile and run a test like test cases, target deployment port(TDP), source file under test, stubs, etc.
Why use Test Harness?
- Automate the testing process
- Execute test suites of test cases
- Generate associated test reports
- Support for debugging
- To record the test results for each one of the tests
- Helps the developers to measure code coverage at a code level
- Increase the productivity of the system through automation
- Enhance the quality of software components and application
- To handle the complex condition that testers are finding difficult to simulate
There are two contexts where Test Harness is used
- Automation testing: It contains the test scripts, parameters necessary to run these scripts and gather results to analyze it
-
Integration testing: It is used to put together two units of code or module that interact with each other to check whether or not the combined behavior is as expected or not
Test Harness Tools
Test Harness Vs Test Framework
Test Harness | Test Automation Framework |
---|---|
|
|
|
|
|
|
|
|