Jmeter Current Thread Number?

后端 未结 4 1253
耶瑟儿~
耶瑟儿~ 2021-02-06 23:24

I am using a Thread Group with Number Of Threads = 5 with an HTTP request.

In the request I want to include a parameter with the value of the thread number, e.g.,

<
4条回答
  •  清歌不尽
    2021-02-07 00:14

    For those looking for the number of active threads in the entire test plan, not just a particular ThreadGroup.

    ${__groovy(org.apache.jmeter.threads.JMeterContextService.getNumberOfThreads())}
    

提交回复
热议问题