0
我有HTTP請求,我使用Beanshell postprocesser來獲取我的響應數據在變量中,因爲我想將我的響應數據存儲在輸出文件中。如何在Beanshell Jmeter中使用輸出變量或樣本變量?
在BeanShell的postprocesser:
String result_1 = prev.getResponseDataAsString();
vars.put("result_1", "result_1");
這裏:result_1是我在user.properties sample_variable文件
jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.response_data=true
sample_variables=test_id,result_1