1、将百度搜索用fiddler录制导出保存为 百度.jmx 后,用jmeter打开启动运行,响应数据栏中显示请求接口错误,如图所示。响应数据中显示“location.replace(location.href.replace(“https://”,”http://”));”,这个js语句意思是链接中的https://替换为http://
2、将jmeter中的所有搜索请求协议:从https改为http即可。
3、再次运行jmeter,可以看到此时接口响应已经是正确的搜索结果了。
时间:2024-11-01 05:09:25
1、将百度搜索用fiddler录制导出保存为 百度.jmx 后,用jmeter打开启动运行,响应数据栏中显示请求接口错误,如图所示。响应数据中显示“location.replace(location.href.replace(“https://”,”http://”));”,这个js语句意思是链接中的https://替换为http://
2、将jmeter中的所有搜索请求协议:从https改为http即可。
3、再次运行jmeter,可以看到此时接口响应已经是正确的搜索结果了。