This task describes how to set an assignment method. The assignment method indicates which of the value sets to use and how to use them. For example, you can instruct Vusers to use a new value set for each iteration and use the value sets sequentially or at random. For more information, see Data assignment and update methods for file parameters.
To define an assignment method
Open the Parameter Properties and select a parameter.
Define a data assignment method.
Select an update option for the parameter.
If you chose Unique as the data assignment method, the When out of values and Allocate Vuser values in the Controller options become enabled.
When out of values. Specify what to do when there is no more unique data: Abort Vuser, Continue in a cyclic manner, or Continue with last value.
Allocate Vuser values in the Controller. (for LoadRunner Professional users only) Indicate how to allocate data blocks of parameter values to the Vusers. You can allow Controller to automatically allocate a block size or you can specify the block size for each Vuser.
- Automatically allocate block size. The block size is calculated by dividing the number of parameter values by the number of Vusers.
xvalues for each Vuser. Specify the number of values to allocate to each Vuser.
In the Parameter Properties dialog box, click Close.
In the Select next value list, select a data assignment method to instruct the Vuser how to select the file data during Vuser script execution. The options are: Sequential, Random, or Unique. For more information, see Data assignment methods for file-type parameters.
In the Update value on list, select an update option. The choices are Each Iteration, Each Occurrence, and Once. For more information, see Data assignment and update methods for file parameters.
To track this occurrence, enable the Extended Log > Parameter Substitution option in the Log Runtime Settings. When there are not enough parameter values, VuGen writes a warning message to the Vuser log: No more unique values for this parameter in table <table_name>.
The list of input arguments is replaced by the parameter name, and ABC button is replace by a table icon which you can click to edit the parameter properties or undo the parameter.