Running PureCoverage from Rational Robot

Related Topics

If you have Rational Robot installed, you can run a Robot script for a program and collect coverage data for the program at the same time.

To monitor a program when you run a test script:

1.           Select Tools > GUI Playback Options.

2.           Select the Diagnostic Tools tab and then select Rational PureCoverage.

3.           Add the StartApplication command, including the full path name of the program, to your test script. For example:

StartApplication "C:\myapp.exe"

4.           Run your test script.

Robot runs the test script while PureCoverage collects coverage data for the program. When the test script finishes, PureCoverage saves the coverage data it collected in the PureCoverage data file (.cfy) <exename>.cfy, located in the repository directory. Robot displays a summary line in the Rational LogViewer; double-click the summary line to open the PureCoverage data file.

Notes:

§                  Select Tools > Rational PureCoverage to start PureCoverage directly.

§                  See your Rational Robot documentation for more information about using Robot and about running PureCoverage from Robot to monitor a program.

(C) Copyright IBM Corporation 1993, 2010.