The parameter values of LR are closely related to the settings of select next row and update value on. The following table shows the different settings for select Next row and update value on, and gives a detailed description of the results of the parameter values for LR.
Select Next row |
Update Value on |
Actual running results |
Sequential |
Each iteration |
The values are the same for all users in a single loop. All users first cycle through the first row of values, the second loop takes the second row of values |
Each occurrence |
Where parameters are used in a loop or in a script, all users take the same value. When a parameter is used in the script, the value of the parameter is updated once and the value is updated once again. |
Once |
All users take the same value in all loops. All users in all loops, with only one value (that is, the first row of values in the parameter) |
Random |
Each iteration |
Random values for different users, in different cycle times |
Each occurrence |
Different users, in the script to use the parameter, the random value once, the loop once again randomly to take the value once |
Once |
Different users, no matter how many times the loop, are only randomly evaluated once. |
Unique |
Each iteration |
If you choose to manually customize the parameters, that LR assigns parameters to each user's parameters before looping. If you choose to assign parameters automatically: controller vu (for example, set the number of cycles to parameter values), then the next 3 parameter values are assigned to the second vu, and so on ... edit schedule run for: If automatic assignment is selected, LR The parameters are divided by the number of users, and the remaining parameters are not used. |
Each occurrence |
Only manually assigned users, after assigning x parameters to each user, where there are parameters in the script, use the x parameters already assigned. |
Once |
Assign a parameter to each user by the number of users. After the loop this user uses this one parameter |
Data: A, B, C
Virtual users: Vuser1, Vuser2, Vuser3
The parameters in the script appear three times, and the script iterates three times
How do I remove a row of data?
Sequential: sequence, in which all virtual users read the data table sequentially
Random: Randomly, all virtual users read data tables in random form
Unique: Unique, all virtual users take one value at a time (not duplicated)
When do I access the data table to complete the data update?
Each iteration: after each iteration
Each occurrence: arguments appear each time
Once: Each occurrence of a virtual user
Instance:
Order
Sequential + each iteration
The first iteration occurs whenever the parameter Vuser1, Vuser2, Vuser3 takes a
Second iteration no matter when the parameter appears Vuser1, Vuser2, Vuser3 take B
The third iteration takes the Vuser1, Vuser2, Vuser3 to C at any time, regardless of the parameter
Sequential + each occurrence
The nth iteration parameter appears for the first time Vuser1, Vuser2, Vuser3 take a
Nth iteration parameter appears second time Vuser1, Vuser2, Vuser3 take B
Nth iteration parameter appears third time Vuser1, Vuser2, Vuser3 take C
Sequential + Once
Regardless, all users take a
random
Random + every iteration
Nth Iteration no matter how many times the argument is encountered, Vuser1 takes only a, or B, or C, this iteration no longer updates the
nth Iteration no matter how many times it encounters the parameter Vuser2 only take A, or B, or C, this iteration no longer updates the
nth Iteration no matter how many times Vuser3 encountered the parameter is only a, or B, or C, this iteration is no longer updated
in n+1 iterations, each vuser re-randomly extract the data
Random + each occurrence
Nth iteration encounters this parameter for the first time Vuser1, Vuser2, Vuser3 randomly extracts a
nth iteration in A, B, C for the second time to encounter the parameter Vuser1, Vuser2, Vuser3 again randomly extracts a
nth iteration in A, B, C and encounters this parameter for the third time Vuser1, Vuser2, Vuser3 again randomly extracts a
in n+1 iterations in a, B, C, Each vuser continues to re-extract the data once every time the parameter is encountered
Random + Once
Nth iterations no matter how many times the parameter is encountered Vuser1 only a, or B, or C
Nth iteration regardless of how many times the parameter encountered the Vuser2 to take a, or b, or C
Nth iteration, no matter how many times Vuser3 encounters the parameter, only a, or B, or C
in n+1 iterations, each vuser does not re-extract the data
Only
Note: Use this unique type to be aware that the data table has enough numbers.
For example, the controller set 20 virtual users to 5 cycles, then the virtual user Number 1 takes the first 5 numbers, 2 of the virtual user to take 6-10 of the number, and so on, so that the data table must have at least 100 data, otherwise the controller will return an error during the run.
So the following example adds data D, E, F, G, H, I to the data table.
Unique + each iteration
First iteration no matter how many times the parameter appears Vuser1 take a Vuser2 D Vuser3 take G
The second iteration no matter how many times the parameters occur Vuser1 take B Vuser2 take e Vuser3 take H
The third iteration no matter how many times the parameter appears Vuser1 take C Vuser2 take F Vuser3 Take I
Unique + each occurrence
The first iteration appears for the first time this parameter Vuser1 take a Vuser2 take D Vuser3 take G
The first iteration appears the second time the parameter Vuser1 take B Vuser2 take e Vuser3 take H
The first iteration appears the third time the parameter Vuser1 take C Vuser2 take F Vuser3 Take I
Unique + Once
Regardless of the number of iterations that occur regardless of the parameters at any time Vuser1 take a Vuser2 b Vuser3 take C
Settings for select Next row and update value on LR