As an alternative to recording, you can create a script to enter Java code manually. In the new script, Functional Tester includes import statements for files you need to compile the script and comments that contain archiving information. Functional Tester uses the script name as the class name and sets up testMain, where you can add the commands to include in the script.
All Functional Tester scripts use a default helper superclass. You can create your own helper superclass if you want to add additional methods or override the methods within RationalTestScript. For more information, see Changing the Default Script Helper Superclass.
To create a new Functional Tester script manually:
Click the Create
an Empty Functional Tester Script button on the Functional
Test toolbar or click File > New >
Empty Functional Tester Script on the Functional Tester menu.
In the Create an empty Functional Tester script dialog box, enter or select a folder for the script and type a name in the Script name field. The script name must be a valid Java class name.
Check Add the script to Source Control if you want the script to be under source control. For more information, see About Software Configuration Management.
Take one of the following steps:
(Optional) To use a different test object map, helper superclass, or test datapool, click Next.
The Select Script Assets page appears.
Select any of the following test assets:
Select and set a default test object map
Select and set a default helper superclass
Select a test datapool
Select a datapool record selection order,
Click Finish.
To create the new script, click Finish.
Functional Tester creates a local test object map for your script and displays the script in the Projects View.
To put the script under source control:
Right-click the new script in the Projects View, click Team, and click Check In.
In the Check In dialog box, click Finish.
Start adding code to the script.
You can use the Test Object Map to add objects and methods to the script.
To insert any features into the script, such
as a call script command, log entry, timer, script delay, or comment,
click the Insert Recording into Active
Functional Tester Script button on the Functional
Test toolbar. On the Recording toolbar, click the Insert
Script Support Commands button
.
You can also use buttons on the Recording
toolbar to start an application from the script or create a verification
point. Click the Display Help button on the Recording
toolbar for information about the options on the Recording toolbar.
Related Topics:
Recording in an Existing Script
Displaying Test Object Information
Terms of use | Feedback
(C) Copyright IBM Corporation 2002, 2004. All Rights Reserved.