JMeter - loop controller with variable loop count

user1582114 picture user1582114 · Aug 7, 2012 · Viewed 32.4k times · Source

I am using JMeter and I want to define one loop controller. In this loop I want to define the loop count with a Jmeter variable. Is this posible?

Thanks a lot

Answer

Johnny Willer picture Johnny Willer · Nov 4, 2015

I know is very late to help you, but it can help the others.

One good way to do this is to define a counter inside the loop controller.

Example, if you want a loop with 20 iterations, you put 20 in the loop controller and in the counter you put from 0 - 19. In the counter you can also define an increment. The output variable is named in the Reference Name field.

loop controller with counter