当前位置:网站首页>How to use [jmeter regular expression extractor] to solve the problem of returning the value as a parameter
How to use [jmeter regular expression extractor] to solve the problem of returning the value as a parameter
2022-08-10 08:33:00 【software testing】
Table of Contents
Add regular expression extractor step:
Foreword
When we use jmeter for interface testing, we often encounter that the return value of the previous interface will be used as the parameter of the next interface to request.At this time, you need to use jmeter's regular expression extractor.
Add regular expressionExtractor steps:
"Right click on the interface to add the extractor"——add——post processors——regular expression extractor, the specific operation is as follows:
After adding, the configuration is as follows:
Then the next interface call:
Description:
(1) Reference name: The name of the parameter to be referenced in the next request, such as filling in cid, you can use ${cid} to reference it.
(2) Regular expression:
(): The enclosed part is to be extracted.
.: Matches any string.
+: One or more times.
?: Don't be too greedy, stop after the first match is found.
(3) Template: refer to it with $$. If there are multiple regular expressions in the regular expression, it can be $2$$3$, etc., which means the parsed value is given to the title.For example: $1$ represents the first value parsed
(4) Matching numbers: 0 means random value, 1 means all values, usually fill in 0
(5) Default value: If the parameter does not get a value, it will default to a value and let it take it.
One last tip:
Results can be viewed in the result tree and the Debug PostProcessor during debugging to help analyze the results.
Conclusion
This post ends here. Finally, I hope that friends who read this post can gain something.If you want to take testing as a long-term career development goal, you need to keep learning and make yourself competitive. No matter how many years you work now, as long as you take action, you will already have an advantage.I wish everyone a promotion and salary increase in 2022. Those who have not joined the company will get the offer of their favorite company as soon as possible, and everything will go smoothly.
Welcome to leave a message, or follow my column to communicate with me.
边栏推荐
- uni 小程序腾讯地图polygon背景透明度
- Delphi实现的一个文件在线查询显示下载功能
- CV+Deep Learning - network architecture Pytorch recurrence series - classification (3: MobileNet, ShuffleNet)
- 2022-08-01 网工进阶(二十四) STP进阶知识
- Rust learning: 6.3_ Tuples of composite types
- 2022-08-01 Advanced Network Engineering (24) STP Advanced Knowledge
- [OAuth2] Nineteen, OpenID Connect dynamic client registration
- 封装和使用通用的工具栏组件
- ShardingSphere入门
- PTA Exercise 2.1 Simple Calculator
猜你喜欢
Relaxation class: the boss will martial arts, who also can not hold up against!The charm of six sigma training
DAY25:逻辑漏洞
模糊查询除了like+ % 还能用什么方式
ABAP Data Types 和XSD Type 映射关系以及XSD Type属性
【搜索引擎】Solr:提高批量索引的性能
速卖通卖家如何抓住产品搜索权重
nrm 使用详解
ARM结构体系3:ARM指令的寻址和异常中断处理
The precise effect of network integration promotion outsourcing in the era of Internet of Things-Shenzhen Win-Win World News
DAY26: GetShell project
随机推荐
ARM Architecture 2: Processor Core and Assembly Instruction Set
The precise effect of network integration promotion outsourcing in the era of Internet of Things-Shenzhen Win-Win World News
第十六天&charles的基本操作
Uni applet Tencent map polygon background transparency
快速输入当前日期与时间
物联网时代下的网络整合推广外包精准化效果-深圳双赢世讯
Rust learning: 6.1_Slices of composite types
Day36 LeetCode
高性能短连接设计
Rust学习:6.3_复合类型之元组
iwemeta元宇宙:一个娃娃卖9999元,泡泡玛特认为一点也不贵
上课笔记(7)(1)——#647. 找树根和孩子(root)
【FAQ】【Push Kit】推送服务,回执配置一直报错、回执过期修改、怎么删除配置的回执
TensorFlow 2.9的零零碎碎(一)
问下cdc mysql to doris.不显示具体行数,怎么办?
90. (cesium house) cesium height monitoring events
J9数字论:Web3.0+互联网电商会引起怎样的火花?
速卖通卖家如何抓住产品搜索权重
js读取excel时间格式转换
J9 Number Theory: Macro Analysis of DAO Characteristics