Chinaunix首页 | 论坛 | 博客
  • 博客访问: 455906
  • 博文数量: 45
  • 博客积分: 2526
  • 博客等级: 少校
  • 技术积分: 478
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-12 21:04
文章分类

全部博文(45)

文章存档

2014年(1)

2011年(1)

2010年(3)

2009年(22)

2008年(18)

我的朋友

分类:

2009-03-22 12:01:21

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.

Test harnesses allow for the automation of tests. They can call functions with supplied
parameters and print out and compare the results to the desired value. The test harness is
a hook to the developed code, which can be tested using an automation framework.

A test harness should allow specific tests to run (this helps in optimising), orchestrate a
runtime environment, and provide a capability to analyse results.

The typical objectives of a test harness are to:

    * Automate the testing process.
    * Execute test suites of test cases.
    * Generate associated test reports.

A test harness typically provides the following benefits:

    * Increased productivity due to automation of the testing process.
    * Increased probability that regression testing will occur.
    * Increased quality of software components and applicat
阅读(1919) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~