Jmeter Current Thread Number?

Raju picture Raju · Jun 23, 2011 · Viewed 46.1k times · Source

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.,

"pageno": ${threadno}

I want to get the thread number like ${threadno}.

How can I do that?

Answer

Andrey Pokhilko picture Andrey Pokhilko · Jun 23, 2011

The thread number is available as:

${__threadNum}

See: functions reference