When to use block in the script for LOad runner

Questions by t_ansar   answers by t_ansar

Showing Answers 1 - 9 of 9 Answers

You can use block size (in the Controller) to manually allocate blocks for your running Vusers. For example, if you choose a block size of 50 for 10 Vusers with values starting at 0, this is how your Vusers will be assigned values:

Vuser 1: 0 to 49
Vuser 2: 50 to 99
... and so on

  Was this answer useful?  Yes

a.parveen

  • Feb 23rd, 2008
 

For executing the different user actions with different no. of times u can use blocks.
For Eg:
There are 2 actions
If u want to execute 1st action 10 times and 2nd action 15 times u can use blocks.
Vuser --> Run Time settings u can insert blocks

  Was this answer useful?  Yes


Generally we dont we blocks for load testing(here load testing means Controller). Because “number of iterations” is only used when running the script in VuGen. we dont use iteratations in the controller. To check the functionality of the script we do different Runtime setting options in vuGen. Comming to Blocks also the same thing,


              Suppose, if my script is having multiple Actions, each with different business process and if i need to get fractional percentage weightages for each  business process - then, we create a block that runs 1% of the time, and put an action in the block that runs 10% of the time. So, to Replay different Actions with different iteratations we use Blocks.

HARIPRASAD

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions