pepper-box icon indicating copy to clipboard operation
pepper-box copied to clipboard

usesr defined Variables pulled in at launch rather than realtime..

Open D0LLAR opened this issue 7 years ago • 1 comments

Using the Pepper box plain txt config.. to defin the message to be sent.. it seems jmeter variables usedin there or user defined variables used in there are pulled at run inception rather than real time. The template isnt updated with changes that might occur to user variables during a run.. eg a timestamp etc..

D0LLAR avatar Jun 22 '18 14:06 D0LLAR

As an example, we want to use the thread id in our message. So we set a variable in JSR223

vars.put("threadId","\"" + ctx.getThreadNum() + "\"");

and try to read it in the schema template

"id": "device-${threadId}",

But the Kafka payload is not updated with the correct value.

tnjohansson avatar Jul 11 '18 12:07 tnjohansson