Sunday, 3 June 2012

How Unique with Each iteration and Abort Vusers works in Parameter file


When a File parameter is unique, LoadRunner will divide the data evenly into blocks and assign each block to a virtual user when it starts running. Each vuser will use the data in their assigned block sequentially.

This means that the used values aren’t all at the start of the file; they appear in chunks, spread evenly throughout the file (unless your scenario has a single virtual user).

Size of block depends on the "Automatically allocate block size" and "Allocate ____values for each Vusers."If we select first "Automatically allocate block size" it allocates data in 1 block= no of iterations.

Example:
Itreation=1
User=3
Data: 1,2,3,.......20 =total 20

Then 20/3=6.66. Then Data will divide in block of 6 and last 2 data will not assign to any user.

 1 user: 1,2...6
 2 user= 7,8.....12,
 3 user= 13,14....18.

19 and 20 will not pickup by any user.

Note: Above divide is applicable only there is some run duration. If run duration is " Run until completetion" then data divide is not applicable.


Unique/Once: Each vuser will use the data in sequentially. This means that the used values are all at the start of the file. No matter if run duration is "Run until completetion" OR have some duration.

Example:
User=3
Data: 1,2,3,.......20 =total 20

 1 user: 1,
 2 user= 2
 3 user= 3

User=3
iteration=2
Data: 1,2,3,.......20 =total 20

 1 user: 1,1
 2 user= 2,2
 3 user= 3,3

No comments:

Post a Comment

How to Change Password of IUSR_METRO Account

Sometime we need to change the password of IUSR_METRO Account. This may be required due to compliance issue. Below are the steps to chang...