Tool Mentors > Rational TestFactory Tool Mentors > Executing a Suite of Test Scripts Using Rational TestFactory

Purpose

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

Related Rational Unified Process™  information:

Overview

A “Test Suite” is the Rational 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 Rational 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 Rational Robot as well as test scripts generated in Rational 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.

Rational 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. Rational TestFactory calculates code-based test coverage for test scripts only if the application is instrumented.

Help icon Refer to the following topics in Rational TestFactory online 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, Rational 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 Run a Test Suite manually topic in Rational TestFactory online Help.

Copyright  © 1987 - 2001 Rational Software Corporation

Display Rational Unified Process using frames

Rational Unified Process