Table of content

Loop Controller in Jmeter

Loop Controller will run the samplers/requests stored in it for a definite number of times or forever (if forever checkbox is selected).

The following example demonstrates the Loop Controller :

  • Launch JMeter in your system.
  • Add Thread Group to the Test Plan and then add HTTP Request Sampler and entering the Website address in the HTTP Request as shown below.

  • Create another HTTP Request and then I am going to add UiPath Link as shown below.
  • In the same way, add one more HTTP Request and then add one more link in the path.
  • So I have Three HTTP Requests under the Thread Group. And also add one listener View Results Tree to see the report.
  • Now save and run the Test Plan and after the execution, all the Requests have been executed successfully.
  • Add the Loop controller to the thread group from the logic controller as shown below.
  • After adding the Loop controller to the thread group add the python programming request to it and enter the number of loop count as 3, so that the Python Programming will be executed three times and the remaining requests will be executed 1 time.
  • Now save and run the test plan.
  • So, Whatever the Loop count is present in the Thread Group is applicable to all the Requests and the loop count which is present in the Loop Controller will be applicable only to the Request which is present under the Loop controller.
0 results
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions