Thursday, 30 June 2016

Runtime Controller

If we wish to control the duration of test execution,we might need the "Runtime Controller". If we require to develop a scenario where we wish to come out of the loop after certain time no matter how much execution has been completed then we have to use "Runtime Controller"


Test Plan Description: We have added 10 requests and time required to execute all the 10 requests is 2 seconds.If now we wish to check how many of these 10 requests are executed in 1 second,then we can provide "Runtime" as 1 and execute the script

 


View result Tree:
 

So the result shows that only 4 requests has been executed in 1 second

Wednesday, 29 June 2016

Interleave Controller

If we wish to execute our request sequentially one after another,we may use "Interleave Controller". e.g.If we wish to submit different values with same request then may we use  "Interleave Controller". 


Test Plan Description: This includes five requests under a thread group.Added "Interleave Controller" and a "Simple Controller" under this.First three request are directly under "Interleave Controller" and rest of the two request are under simple controller

 


Scenario 1:"Ignore sub-controller blocks" check box is not selected.This will tell jemter to consider two requests under sub controller ("Simple Controller") as single identity

 

We have set the loop count as 8 and now if we execute the script,Results will be as below

Loop 1: ("Request 1" & "Request Complete");
Loop 2: ("Request 2" & "Request Complete");
Loop 3: ("Request 3" & "Request Complete");
Loop 4: ("Request 4" ,"Request 5"& "Request Complete");
Loop 5: ("Request 1" & "Request Complete");
Loop 6: ("Request 2" & "Request Complete");
Loop 7: ("Request 3" & "Request Complete");
Loop 8: ("Request 4" ,"Request 5"& "Request Complete");

View Result tree:





Scenario 2:"Ignore sub-controller blocks" check box is selected.This will tell jemter to treat them as individual request



We have set the loop count as 8 and now if we execute the script,Results will be as below 

Loop 1: ("Request 1" & "Request Complete");
Loop 2: ("Request 2" & "Request Complete");
Loop 3: ("Request 3" & "Request Complete");
Loop 4: ("Request 4" & "Request Complete");
Loop 5: ("Request 1" & "Request Complete");
Loop 6: ("Request 2" & "Request Complete");
Loop 7: ("Request 3" & "Request Complete");
Loop 8: ("Request 5" & "Request Complete"); 

 View Result tree:


 


 In above result,there is no clubbing of requests as seen in previous scenario.