1、以百度登录为例

2、打开console

3、根据console结果设置公共的header在test plan

4、建立测试计划-test plan

5、正则表达式提取器,获取token

6、一般有一个专门获取token的接口,找到它(登录token中账户、密码是通过csv文件中获取到的)


7、token授权处引用提取的变量access_token

8、设置完成
此处我们是将引用csv文件中的用户名密码来获取的token.由于百度token被隐藏,我们无法查看,实际项目中token我们是可以知道的
网友评论