1. 在线程下面添加后置处理器BeanShell PostProcessor,增加script:prev.setDataEncoding("UTF-8");
2. 在jmeter.properties中修改:sampleresult.default.encoding=UTF-8
本文介绍如何在JMeter中设置UTF-8编码以确保请求和响应的正确解析。通过在线程组下添加BeanShellPostProcessor后置处理器并设置脚本,以及修改jmeter.properties文件中的sampleresult.default.encoding参数。
1. 在线程下面添加后置处理器BeanShell PostProcessor,增加script:prev.setDataEncoding("UTF-8");
2. 在jmeter.properties中修改:sampleresult.default.encoding=UTF-8
转载于:https://www.cnblogs.com/sunyale/p/11206933.html
1820
1603
3万+

被折叠的 条评论
为什么被折叠?