As an alternative to recording, you can create a script to enter Java™ code
manually.
In the new script, IBM® DevOps Test UI (Test UI) includes import
statements for files you need to compile the script and comments that contain archiving
information. Test UI uses the script name
as the class name and set up the testMain file, where you can add the commands to include in the
script.
All functional test scripts use a
default helper superclass. You can create your own helper superclass
if you want to add additional methods or override the methods in RationalTestScript.
For more information, see Changing the Default
Script Helper Superclass.
-
Click Create an Empty Functional Test Script () on the Functional Test toolbar.
-
In the Create an empty Functional Test script
dialog, enter or select a folder for the script and type a name in Script
name. 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 dataset, click Next.
In the
Select
Script Assets page, select any of the following test assets
and click
Finish:
- Select and set a default test object map.
- Select and set a default helper superclass.
- Select a test dataset.
- Select a dataset record selection order.
- To create the new script, click Finish.
Functional Test creates a local test object map for your script and displays the script in the
Projects View.
- 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 Insert Recording into Active Functional Test Script
() on the Functional Test toolbar. On the Recording toolbar, click Insert Script
Support Commands().
You can also use buttons
on the Recording toolbar to start an application from the script or
create a verification point.