一、设置编码方式utf-8并勾选编码
适用场景:参数中含有中文或乱码
二、增加beanshell脚本
添加BeanShell PostProcessor或者BeanShell Sampler,输入代码prev.setDataEncoding("utf-8");
适用场景:第一种方法不管用时,或者没有参数时
三、修改jmeter配置文件
修改jmeter.properties配置文件,找到encoding,去掉前面的#。保存重启jmeter
适用场景:参数中含有中文或乱码
添加BeanShell PostProcessor或者BeanShell Sampler,输入代码prev.setDataEncoding("utf-8");
适用场景:第一种方法不管用时,或者没有参数时
修改jmeter.properties配置文件,找到encoding,去掉前面的#。保存重启jmeter