Purpose

This tool mentor describes how to use Rational TestFactory to measure and evaluate the results of executing a Test Suite.

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


Overview

After you have executed a Test Suite in Rational TestFactory, you can evaluate the results. For information about using a Test Suite to run a suite of Test Scripts in TestFactory, see Tool Mentor: Executing a Suite of Test Scripts.

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

To use Rational TestFactory to evaluate the results of executing a suite of Test Scripts:

  1. Review the run status of the Test Scripts in a Test Suite
  2. Analyze code-based test coverage

1. Review the run status of the Test Scripts in the Test Suite To top of page

When a Test Suite is the selected object in the left pane of the Rational TestFactory main window, the Status tab in the right pane displays the results of the run. For each Test Script listed in the Test Suite, a status value indicates whether TestFactory executed the Test Script successfully.

If a Test Script failed to run successfully, you can analyze its run log in Rational TestManager.

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

  • Test Suite- tab
  • Review the run status of a Test Suite
  • View the log for a script run

2. Analyze code-based test coverage To top of page

If you instrumented the application-under-test (AUT) before you ran the Test Suite, you can view code-based test coverage data for the Test Suite. When the Test Suite is the selected object in the left pane of the Rational TestFactory main window, the Coverage tab in the right pane displays combined code-based coverage values for all the Test Scripts that ran in the Test Suite.

Rational TestFactory calculates the code-based test coverage values as the percent of the source code that the Test Scripts touch, relative to all the source code in the AUT. 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 Scripts touch.

You can also view the code-based coverage values for individual Test Scripts included in the Test Suite. Double-clicking a test script on the Status tab of the Test Suite selects that Test Script in the left pane. For details, see Tool Mentor: Evaluating Test Coverage.

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

  • Instrumenting the application-under-test
  • Test Suite- tab
  • Review code coverage results for a Test Suite


Rational Unified Process   2003.06.13