jmeter_(6)全局参数配置、局部变量配置

欢迎进行接口(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个线程,运行如图
在这里插入图片描述

Guess you like

Origin blog.csdn.net/weixin_45451320/article/details/118497791