pepper-box
pepper-box copied to clipboard
usesr defined Variables pulled in at launch rather than realtime..
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..
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.