Tool Mentor: Analyzing Automatically Generated Test Scripts Using Rational TestFactoryTM, Rational RobotTM, and the Rational LogViewerTMPurposeThis tool mentor describes how to use Rational TestFactory, Rational Robot, and the Rational LogViewer to analyze automatically generated test scripts that uncovered errors. Related Rational Unified Process activities:
OverviewThis Tool Mentor is applicable when running Windows 95/98/2000/NT 4.0. To use TestFactory, Robot, and the LogViewer to analyze the automatically generated test scripts, do one or both of the following:
ò Analyze a test script that
uncovered a defect
As described in Tool Mentor: Generating Test Scripts Automatically Using Rational TestFactory, a Pilot is the TestFactory tool that automatically generates test scripts. For each defect it encounters while it is running, a Pilot generates a ôdefect script,ö which contains the script statements that cause the defect to occur. When a Pilot finds defects during the run, the test scripts that uncovered defects are located in a separate ôDefects Foundö subfolder under the run folder. You can use the LogViewer to view the run log for the test scripts that uncovered defects.
For details on analyzing a test script in the LogViewer, see Tool Mentor: Evaluating Execution of Test Using the Rational LogViewer. ò Analyze a test script that uncovered
an unexpected active window
During test script generation, a Pilot can encounter an ôunexpected active windowö (UAW)ùa window that reflects an inconsistency between the UI objects in the application map and the controls in the application-under-test (AUT). One of two conditions can cause the Pilot to encounter an unexpected active window:
Whenever it encounters an unexpected active window, the Pilot generates a ôUAW scriptö and places it in the Pilot run folder. You can play back a UAW script in Robot, and then use Robot and the LogViewer to determine the cause of the unexpected active window. After you resolve the cause in TestFactory, subsequent Pilot runs will not encounter the unexpected active window.
|
Rational Unified
Process |