How to display actual loop count in JMeter

徘徊边缘 提交于 2021-02-08 05:00:01

问题


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

Is there something similar for the actual loop count?


回答1:


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}



来源:https://stackoverflow.com/questions/57406339/how-to-display-actual-loop-count-in-jmeter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!