Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph a custom variable in JMeter

Tags:

jmeter

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.

like image 514
jnorris Avatar asked Mar 12 '26 21:03

jnorris


1 Answers

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.

like image 122
UBIK LOAD PACK Avatar answered Mar 15 '26 10:03

UBIK LOAD PACK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!