今天做性能测试发现,报错为100%
windows上面执行又是成功的,最后在linux的jmeter脚本中加了一个BeanShell PostProcessor
prev.setDataEncoding("UTF-8");
String response_data = prev.getResponseDataAsString();
log.error("response_data----------------:"+response_data);
打印出来发现乱码了
最后通过修改jmeter的bin目录下面的jmeter.properties文件
-
#sampleresult.default.encoding=ISO-8859-1修改成:sampleresult.default.encoding=utf-8再次执行脚本,发现全部成功了!这个可能是其中一种解决方式