This topic is applicable for IBM® Rational® Performance Tester version
8.5.1. To assign unique sequential numbers to all the virtual
users in a test, you can create a sequential number data source in
the workbench. This data source will generate unique integers or floating
point numbers for the users.
Before you begin
You can use the sequential built-in data source option wherever
data correlation substitutions are permitted, such as Transactions
or Delays.
About this task
You define an initial value that should be assigned to the
first virtual user and a step value that is a number by which the
current value increments after each retrieval by a virtual user. If
initial value is 1 and step value is 5, the workbench generates numbers
in the sequence of 1, 5, 10, 15, and so on for each virtual user.
If a test is run on multiple agent machines, the workbench assigns
a sequential value to all the users in all the agent machines.
Procedure
- In the Test Contents area of the test, click an element
in the test where data correlation substitution is permitted, such
as a transaction name or delays.
- In the Test Element Details area, right-click the name
of the element and click .
- In Built-in Datasource Selection Wizard,
click Sequential Number and click Next.
- Assign a name for the data source.
- In Initial Value, type a number
to be assigned to the first virtual user.
- In Step Value, type a number.
- In Formatting Options, you can format
the number in the manner you want to use.
- Click Finish.
- Save and run the test.
Results
After you add the test to a schedule and run the schedule,
the test log displays each element name where the data source is applied
with the unique sequential number assigned to the virtual user.