Sunday, October 19, 2014

Logic Controllers Jmeter

Logic Controllers

Logic Controllers determine the order in which Samplers are processed.

1)Loop Controller

If you add a Loop Controller, JMeter will loop through them a certain number of times, in addition to the loop value you specified for the Thread Group.

For example, if you add one HTTP Request to a Loop Controller with a loop count of two, and configure the Thread Group loop count to three, JMeter will send a total of 2 * 3 = 6 HTTP Requests.

2)Once Only Controller
The Once Only Logic Controller tells JMeter to process the controller(s) inside it only once per Thread, and pass over any requests under it during further iterations through the test plan.

The Once Only Controller will now execute always during the first iteration of any looping parent controller. Thus, if the Once Only Controller is placed under a Loop Controller specified to loop 5 times, then the Once Only Controller will execute only on the first iteration through the Loop Controller (ie, every 5 times).

More to come..