当前位置:网站首页>JMeter interface test, associated interface implementation steps (token)
JMeter interface test, associated interface implementation steps (token)
2022-06-25 08:56:00 【fish_ study_ csdn】
Catalog
Catalog
1、 Create a new thread group in the test plan , Create a new login in the thread group http request
3、 Let's create another one http request , Need to use token
4、 Let's create another one http Request header
6 、 In addition to using regular, you can also use json Extractor
6.1 Disable the original regular extractor
6.2 Logged in at http Request to create a json Extractor
6.3 Use token The query interface of does not change
jmeter When used for interface test , The latter interface often needs to use the results returned by the previous interface , How to get the result value of the previous request , Applied to the latter interface ?
There are generally regular extractors and json Two types of extractors
Take a login example to illustrate , To get the comment list, you need to log in to view
1、 Create a new thread group in the test plan , Create a new login in the thread group http request
2 、 Add a regular extractor :
Regular expressions match to token Value , Assigned to a variable dlt
Quote name : Self defined variable name , The variable name to be referenced by subsequent requests , If you fill in :dlt, The following quotation method is ${dlt}
Regular expressions : Extract regular expressions for content , amount to lr Correlation function in
【() The enclosed parts need to be extracted , You need to enclose the content in brackets 】
【. The dot means match any string 】
【+ Once or more 】
【? Stop after first match found 】
3、 Let's create another one http request , Need to use token
4、 Let's create another one http Request header
5 、 Send a request :
6 、 In addition to using regular, you can also use json Extractor
I didn't rebuild a thread group , Based on the original thread group
6.1 Disable the original regular extractor
6.2 Logged in at http Request to create a json Extractor
6.3 Use token The query interface of does not change
6.4 Query interface OK
边栏推荐
- How to implement a system call
- UEFI: repair efi/gpt bootloader
- [MySQL] understanding and use of indexes
- 三、自动终止训练
- 备战2022年金九银十必问的1000道Android面试题及答案整理,彻底解决面试的烦恼
- Is it safe to open a stock account online now?
- C language "Recursion Series": recursively realizing the n-th power of X
- WebGL谷歌提示内存不够(RuntimeError:memory access out of bounds,火狐提示索引超出界限(RuntimeError:index out of bounds)
- Chinese solution cannot be entered after webgl is published
- 开户券商怎么选择?在线开户是安全么?
猜你喜欢
C program termination problem clr20r3 solution
某视频网站m3u8非感知加密分析
Oracle-单行函数大全
备战2022年金九银十必问的1000道Android面试题及答案整理,彻底解决面试的烦恼
(translation) the use of letter spacing to improve the readability of all capital text
四、卷积神经网络(Convolution Neural Networks)
Various synchronous learning notes
云网络技术的好处以及类型
cazy长安战役八卦迷宫
Unity--configurable joint -- a simple tutorial to get you started with configurable joints
随机推荐
What is the file that tp6 automatically executes? What does the tp6 core class library do?
《乔布斯传》英文原著重点词汇笔记(五)【 chapter three 】
C language: count the number of characters, numbers and spaces
Openfoam: bottom layer
¥3000 | 录「TBtools」视频,交个朋友&拿现金奖!
C language "recursive series": recursive implementation of 1+2+3++ n
[515. find the maximum value in each tree row]
C language "Recursion Series": recursively realizing the n-th power of X
About i/o -- the relationship between memory and CPU and disk
openid是什么意思?token是什么意思?
IC研发常用英文术语缩写
2、 Training fashion_ MNIST dataset
【515. 在每个树行中找最大值】
开户券商怎么选择?在线开户是安全么?
华泰证券在上面开股票账户安全吗?
第十五周作业
Fault: 0x800ccc1a error when outlook sends and receives mail
How annotation lib and processor lib reference
Webgl Google prompt memory out of bounds (runtimeerror:memory access out of bounds, Firefox prompt index out of bounds)
RTOS 多线程下hardfault问题总结