background image
<< Editing Datapool Values with Robot | Accessing a Datapool from GUI and Session Scripts >>
<< Editing Datapool Values with Robot | Accessing a Datapool from GUI and Session Scripts >>

Using Datapools with GUI Scripts

Working with Datapools
10-24
6. In the Edit Datapool dialog box, edit datapool values as appropriate.
For information about editing datapool values, see Rational TestManager User's
Guide
.
7. When finished editing datapool values, click Save, and then click Close.
For an example of the datapool values that TestManager generates, see Rational
TestManager User's Guide
.
Canceling Your Edits
To abandon all the edits that you made in the Edit Datapool dialog box, click Cancel
or the
ESC
key. With either action, all your edits are abandoned, and the Edit
Datapool dialog box closes.
Using Datapools with GUI Scripts
A GUI script can access a datapool when it is played back in Robot. Also, when a GUI
script is played back in a TestManager suite, the GUI script can access the same
datapool as other GUI scripts and session scripts.
There are differences in the way GUI scripts and session scripts are set up for
datapool access:
You must add datapool commands to GUI scripts manually while editing the
script in Robot. Robot adds datapool commands to session scripts automatically.
There is no
DATAPOOL_CONFIG
statement in a GUI script. The command
SQADatapoolOpen
defines the access method to use for the datapool.
Although differences in setting up datapool access in GUI scripts and session scripts
occur, you define a datapool for either type of script using TestManager in exactly
the same way.
Here are the general tasks involved in providing access to a datapool from a GUI
script. The steps are not in a fixed order -- you can create the datapool at any point:
Record the GUI script.
Add datapool commands to the script.
Create the datapool.
For information about recording a GUI script for datapool access and adding
datapool commands to a GUI script, see Chapter 5 of the SQABasic Language
Reference
. For additional information and examples, see the SQABasic Help, under
the index keyword datapools.
For information about creating a datapool with TestManager, see the TestManager
Help.