Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: converted to 1.6 markup

...

If you add Samplers or Controllers to 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.

Control Panel
http://jakarta.apache.org/jmeter/images/screenshots/logic-controller/loop-controller.gif

Parameters

Attribute

Description

Required

Name

Descriptive name for this controller that is shown in the tree.

No

Loop Count

The number of times the subelements of this controller will be iterated each time through a test run. BR
Special Case: The Loop Controller embedded in the Thread Group element behaves slightly differently. Unless set to forever, it stops the test after the given number of iterations have been done.

Yes, unless "Forever" is checked

Looping Example

...

\[http://jakarta.apache.org/jmeter/demos/LoopTestPlan.jmx Download\] this example (see Figure 3). In this example, we created a Test Plan that sends a particular HTTP Request only once and sends another HTTP Request five times.

http://jakarta.apache.org/jmeter/images/screenshots/logic-controller/loop-example.gif BR

Figure 3 - Loop Controller Example

...