More about Blocks in Run Time Settings (RTS)


If at all we would like to iterate a set of Actions in the Run Logic we can use Blocks.

Below is the flow for an e-commerce application.

Login --> Search Books --> Search Electronics --> Place Order --> Logout




  • Our criteria is that each user should repeat the Search Actions 10 times. 
  • So we have grouped Search Books & Search Electronics Action under Block. (Just rt.click on Run and Select Add Block then rt.click on the Block and Select the Actions)
  • On the top right corner we can see group properties in which I have mentioned the number of Iterations for the Block as 10. So each user will execute the Block 10 times.
  • In the Run Logic I have chosen Sequential, So Actions will be executed one after the other Sequentially. 
  • Instead we can also chose Random. So that Actions will be executed Randomly.
  • In the above image we can see that, number of User iterations is 5 for the whole Run Logic, which means each user will execute the Block 10 times and on the whole Blocks will be executed to a total of 50 times.


Note:

  • When we are bringing all the Actions under block and if we are going to use the Block iterations instead of the Run Logic iterations, then please note that Pacing is not applicable to the Blocks. 
  • So you have to give the pacing value as think time at the end of the last Action in the Block.
  • Say for example we are moving Login and Logout to vuser init & vuser end respectively and rest all actions as a block in the Run section then pacing should be added as think time function at the end of Place Order Action. 


No comments:

Post a Comment