Jmeter - Beanshell Scripting "Thread Number"

Steps to reproduce

1. Add - User defined variables (eg. abc)

2. Add - Beabshell Preprocessor

int threadnum= (ctx.getThreadNum());
log.info("Thread Number is" + " " + threadnum);
var abc;
vars.put("abc", " " +  threadnum);


Note : This parameter is add one value in every thread.

Like:
Thread 1 - abc1
Thread 2 - abc2
Thread 3 - abc3

Comments