background image
<< Exporting a Report as a Text File | Objectives for creating test scripts >>
<< Exporting a Report as a Text File | Objectives for creating test scripts >>

Ch. 5 Automatically Generating Scripts

5-1
C H A P T E R 5
Automatically Generating Scripts
This chapter describes how to use TestFactory to automatically generate scripts that
test the AUT. It provides instructions on how to insert, set up, and run a Pilot, as well
as how to analyze the results of a Pilot run. The final sections describe how to create
custom TestFactory scripts and how to record new user actions in Pilot-generated
scripts. This chapter includes the following topics:
About Pilots
Setting up and running Pilots
Examining Pilot run results
Changing default settings for new Pilots
Opening and editing a best script in Robot
Creating a custom TestFactory script
Checking for memory defects in Visual Basic and C++ applications
(Windows NT)
Improving Pilot-generated scripts
Testing controls in the AUT during Pilot runs
About Pilots
The Pilot is the workhorse of TestFactory. Its automatic scripting capability
mechanizes the writing of script code necessary for regression testing. You can drop
a Pilot at any location in the application map. From there, the Pilot automatically
generates scripts that focus on specific functional areas of the AUT.
During a Pilot run, a Pilot goes progressively deeper into the code of the AUT and
uses the script segments it generates to build a script that gives maximum coverage
of the AUT with a minimum number of script segments. The result is an optimized
best script that provides extensive code coverage and contains a minimum of
redundant script code.