Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的“Java 请求”采样器(即:AbstractJavaSamplerClient)。如何从此采样器生成自定义变量并绘制这些变量?(最好使用开箱即用的图形侦听器)。目前我只能轻松绘制采样时间。
将您的 var 放入 JMeter:
JMeterContextService.getContext().getVariables().put("YOUR_VAR", value)
并添加 user.properties:
sample_variables=YOUR_VAR
您的 var 将以 CSV 或 XML 格式输出。
然后你就可以使用它了。