在JMeter中绘制自定义变量 [英] Graph a custom variable in JMeter
本文介绍了在JMeter中绘制自定义变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个简单的"Java Request"采样器(即AbstractJavaSamplerClient).如何从此采样器生成自定义变量并绘制图形? (最好使用开箱即用的图形侦听器).目前,我只能轻松地绘制采样时间图.
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.
推荐答案
将变量放入JMeter:
Put your var in JMeter:
JMeterContextService.getContext().getVariables().put("YOUR_VAR", value)
并添加user.properties:
And add in user.properties:
sample_variables=YOUR_VAR
您的var将以CSV ou XML输出.
Your var will be output in CSV ou XML.
然后可以使用它.
这篇关于在JMeter中绘制自定义变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文