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.
Asked
Active
Viewed 1,895 times
1 Answers
4
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.

UBIK LOAD PACK
- 33,980
- 5
- 71
- 116
-
2How do you put this in Jmeter? – aclowkay May 28 '18 at 07:03