Friday, 24 June 2016

Random Controller

         If we wish to replicate a scenario where you are not sure about the user navigation behavior.eg,after login to facebook,user might hit the "Message","Friends" or "Setting" buttons.

        To replicate above scenario,you might use a "Random Controller" to group all the request under one controller and run jmeter to hit any of the button on random basis.

TEST PLAN :

 

VIEW RESULTS: 
  
             if you execute the test plan,only one request will be picked up randomly but there is no guarantee that same request will not be hit in next execution

 

Use of "Ignore sub-controller blocks" Checkbox

        Let us introduce another controller in same thread group as shown below.

       A "Simple Controller" has been added and two requests are grouped under the controller and jmeter executed with out selecting "Ignore sub-controller blocks" checkbox.  




  VIEW RESULTS: Checkbox not selected



           if we keep the checkbox un-selected, jemeter considers both the request under "Simple controller" as single entity and runs both the request.

         but if we check the "Ignore sub-controller blocks" check box, jemeter consider each request under "Simple controller" as individual request and pick only one





 VIEW RESULTS: checkbox selected



No comments:

Post a Comment