background image
<< What Kinds of Problems Does a Datapool Solve | Generate datapool code >>
<< What Kinds of Problems Does a Datapool Solve | Generate datapool code >>

Planning and Creating a Datapool

302
Chapter 11 - Working with Datapools
Planning and Creating a Datapool
A summary of the stages involved in preparing a datapool for use in testing is
illustrated in the following figure. The order of stages shown is the typical order for
planning and creating a datapool for test scripts.
The following steps provide details about these activities.
1
Plan the datapool.
Determine the datapool columns you need. In other words, what kinds of values
(names, addresses, dates, and so on) do you want to retrieve from the datapool
and send to the server?
Typically, you need a datapool column for each test script variable to which you
plan to assign datapool values during recording.
s
In Robot, click
Edit > Datapool Information.
s
Modify DATAPOOL_CONFIG or accept the defaults.
Plan the Datapool
s
What datapool columns do you need?
s
What data type should you assign each column?
s
Do you need to create data types?
Generate the Code
VU Test Scripts
Create and Populate the Datapool
s
In Robot or TestManager, define datapool columns (including
assigning a data type to each datapool column).
s
Generate the data.
VU Test Scripts
VU and GUI Test Scripts
GUI Test Scripts
s
Select the
Use datapools
recording option.
s
Record the transactions, and then stop recording.
s
Robot automatically generates datapool commands.
s
Robot automatically matches up test script variable
names with datapool column names.
s
Manually add datapool commands to the test script.
s
Match up test script variable names with datapool
columns.