当前位置:网站首页>User defined variables and extracted public variables of JMeter
User defined variables and extracted public variables of JMeter
2022-07-26 00:43:00 【Tiny wood fills the sea】
One 、 Applicable scenario
We are using Jmeter When writing a test plan , There are often some public data to be filled frequently , Such as request agreement 、 Request address 、 Request port 、 Coding method and other information , Another example is domain name switching 、 Login information configuration and other scenarios .
Generally in a project , These contents are fixed , So we can extract the frequently used variables mentioned above into public data .
Two 、 Usage method

3、 ... and 、 operation
1. Add user-defined variables
Define the request agreement 、 Request address 、 Request port 、 The name corresponding to the encoding method 、 Specific value 、 describe .
Operation path : Thread group ——> add to ——> Configuration element ——> User defined variables 
2. Set up csv Data files

3. add to http request
3.1 Reference variables
jmeter There are many ways to add variables , But the only way to reference variables :${ Variable name }
Request parameters reference variables
{
"user_name":${
user_name},
"password":${
password},
"phone":${
phone},
"real_name":${
real_name}
}
3.2 Reference user-defined variables

Four 、 View the result tree

边栏推荐
- Redis命令参考手册 - Key
- Seretod2022 track1 code analysis - task-based dialogue system challenge for semi supervised and reinforcement learning
- ShardingSphere数据分片
- [contents] mqtt, nodejs projects
- Semaphore
- Flask send verification code logic
- 实战演练 | 查找在给定时间范围内购买超过 N 件商品的客户
- D3D计算着色器入门
- 【NumPy中数组相关方法】
- Tensorflow 2 detailed explanation (TF ecosystem, installation, housekeeping, basic operation)
猜你喜欢
![[untitled] how to realize pluggable configuration?](/img/48/673a2d63e11679f1e75ca3ca7ed6a9.jpg)
[untitled] how to realize pluggable configuration?

sql语句练习

BGP 综合实验

Nodejs surface longitude

GOM and GEE engine black screen does not display the interface, and the solution of equipping map monsters

YOLOV2 YOLO9000

Verilog grammar basics HDL bits training 06

【计算一个字符串和另一个字符串相等的次数】

Study on gene targeting preparation of tissue plasminogen activator loaded on albumin nano ultrasonic microbubbles

HOOPS Exchange助力混合计算流体动力学软件搭建3D格式导入读取功能 | 客户案例
随机推荐
Jmeter之用户自定义变量和抽离公共变量
Hcip day 11
HCIP 第十一天
Nodejs learning
[array creation in numpy]
[array related methods in numpy]
Verilog grammar basics HDL bits training 06
【oops-framework】界面管理
开发还没联调,任务就要上线
@The difference between requestparam and @pathvariable annotations
[oops framework] random number generation management
JVM Tri Color marking and read-write barrier
hyperf使用之curd
Oauth2 and JWT
参数解析器HandlerMethodArgumentResolver分析与实战
DC-6 -- vulnhub range
Hnoi2012 mine construction
JMeter/IDEA中引用jar包json-path.jar的坎坷之路
Solve the problem that when the background image is set to be 100% full, when the horizontal scroll bar appears in the zoom browser, the part of the background image beyond the scroll bar is not full
Leetcode 笔记 20. 有效的括号