2

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

Is there something similar for the actual loop count?

loop count value

degath
  • 1,530
  • 4
  • 31
  • 60

1 Answers1

3

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}

Ori Marko
  • 56,308
  • 23
  • 131
  • 233