I have set the number of users to 5 and i have 3 threads running in a test plan. My issue is when i pass the variable from 1 thread to another, for all 5 users, its passing the same value instead of 5 diff values. I am using Bean shell assertion to pass variable to other thread
Used beanshell assertion to pass variables
${__setProperty(name, ${name})};
${__setProperty(range, ${range})};
and used the property function in next thread
"name": "${__property(name)}",
"range": "${__property(range)}",
If you see the Payload, name and range value is always same for 5 users:
POST data:
{
"name": "testA",
"range": "range-A",
}
Expected result is 5 users should have diff names
{
"name": "testA",
"range": "range-A",
}
{
"name": "testB",
"range": "range-B",
}
{
"name": "testC",
"range": "range-C",
}