3

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.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
jnorris
  • 6,350
  • 8
  • 30
  • 33

1 Answers1

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