background image
<< Coding a GUI Script Manually | Creating a Shell Script >>
<< Coding a GUI Script Manually | Creating a Shell Script >>

Testing Your Recorded Script

Recording GUI Scripts
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
'Script Name: GUI Script
End Sub
5. Begin coding the GUI script.
For information about using the SQABasic scripting language, see the SQABasic
Language Reference
. (In Robot, click Help
SQABasic Reference.)
Testing Your Recorded Script
After you record a script, you can:
Play it back using the same version of the application-under-test.
Edit and compile it.
Debug it.
These steps are described briefly in the following sections.
Playing Back the Script
After you record a script, play it back to verify that it works as intended. Use the same
build of the application-under-test that you used to record the script. After you play
back the script, Robot writes the results to a log. Use Rational TestManager to view
the log. The results should validate the baseline of expected behavior for the
For more information, see Chapter 9, Playing Back GUI Scripts.
Editing and Compiling the Script
After you play back a script, you may decide to edit the script to make it more usable.
For example, you may want to insert a new verification point or change some text of
the script. You may also want to print your script or compile changes.
For more information, see Chapter 5, Editing, Compiling, and Debugging Scripts.
Debugging the Script
You may need to debug your script to locate errors. Robot includes a complete,
built-in debugging environment to assist you during the development phase of your
GUI script.
For more information, see Debugging GUI Scripts on page 5-9.