如何在 JMeter 中显示实际的循环计数
How to display actual loop count in JMeter
我们可以通过以下方式显示实际线程:
${__threadNum}
实际循环计数是否有类似的东西?
您可以使用${__jm__Thread Group__idx}
获取当前循环迭代
${__jm__Thread Group__idx}
请注意,这是 JMeter 5 中用于公开 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}
我们可以通过以下方式显示实际线程:
${__threadNum}
实际循环计数是否有类似的东西?
您可以使用${__jm__Thread Group__idx}
获取当前循环迭代
${__jm__Thread Group__idx}
请注意,这是 JMeter 5 中用于公开 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 namedWC
, then you can access the looping index through${__jm__WC__idx}