Tag Archive: vusers

In Loadrunner script, we use block size per vuser for using the huge range of unique values in a parameter. But during the test, if the execution failes inbetween its very hard to re-allocate the block size again by checking the unused values. In-order to solve this issue, we can use the LR_ADVANCE_PARAM function in loadrunner. Please find below the usage format to implement this.

int x,y,v,i;  // declare these variables as integer
v=atoi(lr_eval_string(“{VuserID}”));  // get the VuserID and store it in v
i=atoi(lr_eval_string(“{ItNum}”));  // get the Iteration number and store it in i
 x=v;  // For the first iteration, x = VuserID
 x=6;  // For the second iterations onward, x = No of Vusers  + 1 (assuming Vusers = 5)
lr_advance_param(“CreatedCustID”);  // parameter file name (keep settings as Sequential Once)



return 0;

By using Little’s lax, we can determine the number of users in the system.

Number of virtual users going to be simulated.
Throughput (bytes)

By using Little’s Law, we can find the following:
Actual Number of users in the System = (Response Time + Think Time) * Transactions per Second