Skip to main content

Development

Test Harness vs Framework

As found, there are some concenpts in the automated testing may be confusing. This is especially true when people have the experience of working for several companies.

Therefore, I’d like to spend couple minutes to make following concepts clear.

  • Test harness
  • Test framework
  • Test runner

If you google image using the keyword “horse harness“, you’ll see a lot of pictures about harness. A well designed horse harness should be suitable for different size/type of horses. Similarly, in the testing context, a test harness should be something which can be used to execute different type and size of test scripts.

As for test framework, to the narrow extent, it’s more referred as how the test scripts are organized. In this case, test framework is exactly the horse given the “horse harness” context.

However, to a broad extent, it’s usually referred as the collection of tools, scripts and processes which support the automated testing. In this case, the framework can be referred as the combination of horse and harness given the “horse harness” context.

In addition to these two words, you may also see the word – test runner. Usually, test runner can be perceived as harness given the “horse harness” context.

Hope these concepts are clarified now.

Thoughts on “Test Harness vs Framework”

  1. Pingback: Automated Testing and Creation of Test Harnesses | Automation Anywhere | A complete environment for interaction with a software module

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Diego Zhong

More from this Author

Categories
Follow Us
TwitterLinkedinFacebookYoutubeInstagram