Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display actual loop count in JMeter

We can display the actual thread by: ${__threadNum}

Is there something similar for the actual loop count?

loop count value

like image 464
degath Avatar asked Oct 22 '25 06:10

degath


1 Answers

You can use ${__jm__Thread Group__idx} to get current loop iteration

${__jm__Thread Group__idx}

Notice this is part of a general enhancement in JMeter 5 for exposing the loop count

While Controller now exports a variable containing its current index named __jm__<Name of your element>__idx. So for example, if your While Controller is named WC, then you can access the looping index through ${__jm__WC__idx}

like image 62
user7294900 Avatar answered Oct 23 '25 21:10

user7294900



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!