Set an assignment method

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

  1. Open the Parameter Properties and select a parameter.

  2. Define a data assignment method.

  3. 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.

  4. Select an update option for the parameter.

  5. 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.

  6. 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.
      • Allocate x values for each Vuser. Specify the number of values to allocate to each Vuser.
    • 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>.

  7. In the Parameter Properties dialog box, click Close.

  8. 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.

    Back to top