Jmeter -- 添加用户自定义变量

时间:2022-03-10 21:39:55

步骤:

1. 添加用户自定义变量元件(线程组->配置原件->用户自定义变量)

 Add --> Config Element --> User Defined Variables

Jmeter -- 添加用户自定义变量

2. 设置用户自定义变量

Jmeter -- 添加用户自定义变量

例如:上图中设置用户自定义变量为test_domain,值为zentao.3hea.com

3. 使用用户自定义变量

 使用时格式:${变量名},如下图:

Jmeter -- 添加用户自定义变量