Purpose

This tool mentor describes how to use Rational TestFactory to evaluate UI-based test coverage and code-based test coverage for a script that was automatically generated in TestFactory.

This section provides links to additional information related to this tool mentor.


Overview

After you have generated test scripts automatically in Rational TestFactory, you can review the test coverage information for each test script. For information about using a Pilot to generate test scripts, see Tool Mentor: Generating Test Scripts Automatically.

This tool mentor is applicable when running Windows 98/2000/NT 4.0.

To use Rational TestFactory to evaluate test coverage:

Review test coverage information To top of page

When a test script is the selected object in the left pane of the Rational TestFactory main window, the Coverage tab in the right pane contains the test coverage information for the script.

Rational TestFactory calculates the UI-based test coverage value as the percent of unique controls in the application (or applet) that the test script touches, relative to the number of controls to which the Pilot has access.

Rational TestFactory calculates the code-based test coverage value as the percent of the source code that a test script touches, relative to all the source code in the application-under-test. If you have access to the source files of the AUT, you can use the Coverage Browser in TestFactory to review the code in a source file and examine which lines of code the test script touches.

Help icon   Refer to the following topics in Rational TestFactory online Help:

  • Scripts: What they are and how they work
  • Review coverage results for a script
  • Code coverage for scripts in a Java application or applet


Rational Unified Process   2003.06.13