Tool Mentors > Rational Test RealTime Tool Mentors > Executing Test Components Using Rational Test RealTime

Purpose

This tool mentor describes how to execute a test campaign created with Rational Test RealTime.

It relates to this Rational Unified Process information:

Overview

This activity consists in building and executing the test campaign. Test RealTime automatically compiles and runs the test application from the implemented test components.

For information on implementing test components, refer to the Tool Mentor titled Implementing Test Components Using Rational Test RealTime

Tool Steps

1. Specify Test Configuration settings To top of page

Each Test Configuration is a set of parameters, needed to build and execute the test campaign, which is based upon a Target Deployment Port. Target Deployment Ports are a unique technology that provide strong integration of Test RealTime with all platforms and embedded development environments throughout test development, deployment, execution, and reporting.

Test Configuration settings can be specified individually for each node in the Test Browser and for each Target Deployment Port used within a project. When you create a new project, one or more Test Configurations are initialized, each based on a specific Target Deployment Port. You can later customize the Test Configuration for the entire project or for a single node.

To specify the Test Configuration Settings:

  • From the Project menu, select Settings.... This opens the Test Configuration Settings dialog box.
  • In the tree-view box, select one or several nodes to which your changes will apply.

Each node inherits Test Configuration settings from its parent node. For example, workspace settings are cascaded down to each node within the workspace. When you override the settings of a node, changes are propagated to all child nodes within the same Test Configuration.

For detailed information on the Test Configuration Settings dialog box, refer to the Test RealTime Online Help.

2. Run test componentsTo top of page To top of page

To run a test, in the Test Browser, right-click the node that you want to run—for example, the Workspace node—and select Make from the context menu.

You can also specify in further detail how to execute the test campaign:

  • From the Build toolbar, click Options, which is next to Make, to open the Build Options dialog box. The left-hand section contains compilation options. In most cases, you will need to select the All option to flawlessly compile the entire test. The right-hand section allows you to apply any observation tools to the node during the test.
  • From the Build toolbar, click Make

During the test, the Build Clock displays the test execution time and the green LED flashes. The Test Browser displays a green checkmark next to each node to indicate the progression of the campaign.

3. Debug test scripts To top of page

If a test does not compile or ends abnormally, the corresponding node is marked with a red cross instead of a green checkmark. The red cross indicates a test generation failure, not a failed test. 

To correct a compilation error, double-click the error message in the Console window to open the Text Editor at the corresponding line of the test script. Correct the error, and rerun the test campaign if necessary.

Once test generation has been successfully performed, a green checkmark appears next to the node.

For More Information

For detailed information on how to analyze test execution, refer to the Tool Mentor titled Analyzing Test Execution Using Rational Test RealTime.

 

Copyright  © 1987 - 2001 Rational Software Corporation


Display Rational Unified Process using frames

Rational Unified Process