Iteration Number in JSR223 Groovy string
Tong Sun <[email protected]> Tue, 2 Apr 2024 13:02:41 -0400
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <CAMmz1OceGXHzr743niUjS5peXajNM3bpCL12mr43h9rEXKvRMQ@mail.gmail.com> |
JMeter has a built-in variable ${__jm__Thread Group__idx} to retrieve the
current iteration, and I want to replace the `Thread Group`
using ${__threadGroupName}. So this comes natural to me:
"Iteration Number is ${__V(__jm__${__threadGroupName}__idx)}"
But when I try it, I always get "0".
What's wrong with it and what's the fix pls? thx