Skip to content
  • ZipCode Api
  • Blog
  • About RedLine13
RedLine13
RedLine13
Primary Navigation Menu
Menu
  • Start Testing
  • Demo
  • Pricing
  • JMeter
  • Partners
  • Docs
    • Documentation Home
    • AWS Set Up for load testing
    • AWS Approval for Large Tests
    • PHP, NodeJS, Python Load Tests
    • Scalability
    • Jenkins Plugin Setup
    • Premium Features
    • Knowledge Base

The JMeter Loop Controller

By: David Koziel

The JMeter Loop Controller

Logical flow is an essential aspect of most performance tests. In previous posts we have explored conditional flow elements such as the If Controller, and deterministic test flow using Assertions. In other cases, we may simply want to have control over running a repeating set of requests. The JMeter Loop Controller is a built-in component providing this functionality, which will iterate over a collection of elements and execute them a predetermined number of times. In this brief article, we will show you how to incorporate this simple but powerful component into your test plans.

Adding and Configuring the Loop Controller

As a built-in component of JMeter, the Loop Controller can be found under the standard list of Logic Controllers when adding elements to your test plan. We can specify a “Loop Count” parameter for this controller once it is added:

Specifying a loop count for the JMeter Loop Controller
Specifying a loop count for the JMeter Loop Controller.

Once added to your test plan, any number of child elements can be added underneath the Loop Controller. These contained elements will be executed in sequence, iterating over this list for as many times as specified for the loop count.

Typical implementation of the JMeter Loop Controller with child elements
Typical implementation of the JMeter Loop Controller with child elements.

It is worth mentioning that the loop count that is specified in the Loop Controller does not override any loop count setting that is specified in the parent Thread Group.  The Loop Controller itself will be for run parent Thread Group iteration, acting in this case as a nested loop.


Did you know that RedLine13 offers a full-featured, time limited free trial?  Sign up now, and start testing today!

2024-12-11
Previous Post: JMeter Extractor Success Assertion
Next Post: Getting a “Grounded” Test to Launch

Recent Posts

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener

Related

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener
  • Using Test Fragments in JMeter Tests
  • Step-by-Step Guide to Testing with JMeter
  • Functional Testing vs Performance Testing
  • A Gentle Introduction to Load Testing
  • Using the JMeter Counter Element

© RedLine13, LLC | Privacy Policy | Contract
Contact Us: info@redline13.com

Designed using Responsive Brix. Powered by WordPress.