Sunday, 11 May 2025

Jmeter - Get/print/display the Thread index nad loop index / ip address of current machine while executing script

Hi,


If we need to print 


Current thread count/index while execution in result

-  thread No: (${__threadNum}) 

and if current loop count/index while execution in result loop -

${__jm__<<name of Threadgroup>>__idx} 

 ${__jm__login__idx}  [In my case its login]



Ip Addreess of current machine

  ${__machineIP}

Result screenshot











No comments:

Post a Comment

Jmeter - Get/print/display the Thread index nad loop index / ip address of current machine while executing script

Hi, If we need to print  Current thread count/index while execution in result -  thread No: (${__threadNum})  and if current loop count/ind...