Purpose

This tool mentor describes how to use Rational TestFactory to create and run a suite of test scripts.

Related Rational Unified Process activities:

Overview

A ôTest Suiteö is the TestFactory tool that lets you run a suite of test scripts. This TestFactory object lets you organize test scripts, run them in a batch as a suite, and then analyze their code-based test coverage.

This Tool Mentor is applicable when running Windows 95/98/2000/NT 4.0.

To use TestFactory to execute a suite of test scripts:

  1. Create a suite of test scripts.
  2. Run the suite of test scripts.

1.   Create a suite of test scripts To top of page

A Test Suite object is a container to which you add the test scripts that you want to run as a batch. The suite of scripts can include test scripts recorded in Robot as well as test scripts generated in TestFactory.

Test Suites are useful for organizing and running groups of best scripts, defect scripts, and scripts created against a specific build of the application-under-test (AUT). The test scripts that you include in the Test Suite remain linked to the Test Suite object. You can run the Test Suite as a regression suite on future builds of the AUT.

TestFactory provides two methods for creating a Test Suite:

  • You can let TestFactory create the Test Suite automatically with selected test scripts.
  • You can manually add a Test Suite object to the application map and then populate the Test Suite with test scripts.

If you want to analyze the code-based test coverage for the test scripts in the suite, you must instrument the AUT before you run the Test Suite. TestFactory calculates code-based test coverage for test scripts only if the application is instrumented.

Help icon   Refer to the following topics in TestFactory Help:

  • Test Suites: What they are and how they work
  • Working with Test Suites
  • Viewing code coverage for a Robot script
  • Instrumenting the application-under-test

2.   Run the suite of test scripts To top of page

When you run a Test Suite, TestFactory executes each test script in the Test Suite in the order in which it appears in the Test Suite list. If the order of the test scripts is important, you can reorder them before running the Test Suite.

Help icon   Refer to the following topic in TestFactory Help:

  • Run a Test Suite manually
Copyright  ⌐ 1987 - 2000 Rational Software Corporation

Display Rational Unified Process using frames

Rational Unified Process