background image
<< Using Microsoft Excel to Create Datapool Data | Creating a Column of Values Outside Rational Test >>
<< Using Microsoft Excel to Create Datapool Data | Creating a Column of Values Outside Rational Test >>

Matching Datapool Columns with Test Script Variables

Creating a Column of Values Outside Rational Test
329
Step 2. Assign the File's Values to the Datapool Column
Once the file of values exists, you assign the values to a datapool column just as you
assign any set of values to a datapool column--through a data type. In this case, you
assign the values through the Read From File data type.
To do so, from the Datapool Specification dialog box, in the
Type
column, select the
data type Read From File for the datapool column being supplied the values from the
external text file.
Use the Read From File data type to assign values to multiple columns in the same
datapool.
Generating Unique Values
You can use the Read From File data type to generate unique values to a datapool
column that you create outside Rational Test.
To generate unique values through the Read From File data type, the file that the data
type accesses must contain unique values.
In addition, when you are defining the datapool in the Datapool Specification dialog
box, make the following settings for the datapool column associated with the Read
From File data type:
s
Set
Sequence
to Sequential.
s
Set
Repeat
to 1.
s
Make sure that the
No. of records to generate
value does not exceed the number of
unique values that you are accessing through the Read From File data type.
For information about the values you set in the Datapool Specification dialog box, see
Defining Datapool Columns on page 311.