欢迎进行接口(httprunner)、UI自动化(pytest)交流,博主微信:jiaotengfei1016
一、全局变量配置
(1)添加用户自定义变量,并配置hostname,port,protocol
(2)添加用户自定义变量,并配置hostname,port,protocol
二、局部变量配置
(1)配置user.csv文件
No.,username,password
1,user01,pwd
2,user02,pwd
3,user03,pwd
4,user04,pwd
5,user05,pwd
6,user06,pwd
7,user07,pwd
8,user08,pwd
9,user09,pwd
10,user10,pwd
(2)添加CSV数据文件设置,并如图配置
(3)替换请求中的参数值
(4)设置10个线程,运行如图