background image
<< Ending the Recording of a GUI Script | Testing Your Recorded Script >>
<< Ending the Recording of a GUI Script | Testing Your Recorded Script >>
Coding a GUI Script Manually
Defining Script Properties
Defining Script Properties
Script properties include:
The script's name, description, owner, purpose, and test environment.
Related assets such as test requirements.
Notes and specification files.
Custom keywords.
You can define or edit script properties after you record the script.
To define script properties:
1. Do one of the following:
If the script is open, click File
> Properties.
If the script is not open, click File
Open > Script. Select the script and
click the Properties button.
2. In the Script Properties dialog box, define the properties.
For detailed information about an item, click the question mark near the
upper-right corner of the dialog box, and then click the item.
3. Click OK.
If you record over an existing GUI script, you overwrite the script file, but any
existing properties are applied to the new script.
Coding a GUI Script Manually
By far, the fastest and easiest way to generate a GUI script is to let Robot record your
actions and generate the script automatically. However, you can also hand-code a
GUI script using the SQABasic scripting language.
To code a script manually:
1. In Robot, click File
2. Type a script name (40 characters maximum) and, optionally, a description of the
3. Click GUI.
4. Click OK. Robot creates an empty script with the following lines:
Sub Main
Dim Result As Integer
'Initially Recorded: 01/17/00 14:55:53