当前位置:网站首页>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

边栏推荐
- Le labyrinthe des huit diagrammes de la bataille de cazy Chang'an
- matplotlib 简单逻辑回归可视化
- Notes on key words in the original English work biography of jobs (VI) [chapter three]
- 六级易混词整理
- C language: find all integers that can divide y and are odd numbers, and put them in the array indicated by B in the order from small to large
- Unity--Configurable Joint——简单教程,带你入门可配置关节
- 备战2022年金九银十必问的1000道Android面试题及答案整理,彻底解决面试的烦恼
- WebGL谷歌提示内存不够(RuntimeError:memory access out of bounds,火狐提示索引超出界限(RuntimeError:index out of bounds)
- How to choose an account opening broker? Is it safe to open an account online?
- 声纹技术(一):声纹技术的前世今生
猜你喜欢

wav文件(波形文件)格式分析与详解

How to solve the 10061 error of MySQL in Linux

Unity发布webGL的时候JsonConvert.SerializeObject()转换失败

In Section 5 of bramble pie project practice, Nokia 5110 LCD is used to display Hello World

C#程序终止问题CLR20R3解决方法

【期末复习笔记】数字逻辑

Unity--Configurable Joint——简单教程,带你入门可配置关节

A 35 year old Tencent employee was laid off and sighed: a suite in Beijing, with a deposit of more than 7 million, was anxious about unemployment

声纹技术(六):声纹技术的其他应用

云网络技术的好处以及类型
随机推荐
Trendmicro:apex one server tools folder
【期末复习笔记】数字逻辑
Unity--Configurable Joint——简单教程,带你入门可配置关节
Various synchronous learning notes
云网络技术的好处以及类型
How to increase the monthly salary of software testing from 10K to 30K? Only automated testing can do it
106. simple chat room 9: use socket to transfer audio
Is it safe to open a stock account online now?
[MySQL] understanding and use of indexes
atguigu----17-生命周期
View all listening events on the current page by browser
¥3000 | 录「TBtools」视频,交个朋友&拿现金奖!
通过客户经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
检测点是否在多边形内
Is it safe for Huatai Securities to open a stock account on it?
4、 Convolution neural networks
声纹技术(三):声纹识别技术
How to solve the 10061 error of MySQL in Linux
从别人库里拷贝的游戏如何再自己的库里显示
annotation lib 和 processor lib如何引用