I have a simple "Java Request" sampler (ie: AbstractJavaSamplerClient). How do I produce custom variables from this sampler and graph these? (Preferably with out-of-the-box graphing listeners). Currently I can only easily graph sample times.
Put your var in JMeter:
JMeterContextService.getContext().getVariables().put("YOUR_VAR", value)
And add in user.properties:
sample_variables=YOUR_VAR
Your var will be output in CSV ou XML.
You can then use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With