一、F12获取请求信息
获取关键字,再使用Jmeter测试的时候会用到。
二、如果F12抓取不完善,使用Fiddler抓取
输入: bup https://passport.cnblogs.com/user/signin?ReturnUrl=%2F
拦截登录请求。
在浏览器访问 https://passport.cnblogs.com/user/signin?ReturnUrl=%2F
Fiddler会出现下面情况:
如果有请求参数,去TextView查看即可。
三、Jmeter请求模拟测试
安装Jmeter4,官网http://jmeter.apache.org/download_jmeter.cgi下载apache-jmeter-4.0.zip,注意没有src。
安装前需要配置jdk8或者9。推荐8
安装Jmeter需要配置环境变量,与配置jdk同样方式。
1、请求配置
2、线程组配置
3、视图结果树