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

边栏推荐
- Is it really safe to pay new debts? Is it risky
- 进击的技术er,遇见实习岗位信息
- C#程序终止问题CLR20R3解决方法
- C language: count the number of characters, numbers and spaces
- Numpy numpy中的meshgrid()函数
- 关于I/O——内存与CPU与磁盘之间的关系
- 城鏈科技平臺,正在實現真正意義上的價值互聯網重構!
- (translation) the use of letter spacing to improve the readability of all capital text
- LVS-DR模式多网段案例
- Notes on key vocabulary of the original English work biography of jobs (I) [introduction]
猜你喜欢

UEFI: repair efi/gpt bootloader

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

Lvs-dr mode multi segment case

How to become a software testing expert? From 3K to 17k a month, what have I done?

【515. 在每个树行中找最大值】

The city chain technology platform is realizing the real value Internet reconstruction!

compiling stm32f4xx_it.c... “.\Objects\BH-F407.axf“ - 42 Error(s), 1 Warning(s).
![[untitled] * * database course design: complete the student information management system in three days**](/img/69/762819fa1b11085a7e36c95acbe880.png)
[untitled] * * database course design: complete the student information management system in three days**

从别人库里拷贝的游戏如何再自己的库里显示

获取扫码的客户端是微信还是支付宝
随机推荐
通过客户经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
Emergency administrative suspension order issued Juul can continue to sell electronic cigarette products in the United States for the time being
Oracle one line function Encyclopedia
打新债真的安全吗? 风险大吗
Sampling strategy and decoding strategy based on seq2seq text generation
5、 Project practice --- identifying man and horse
【无标题】**数据库课设:三天完成学生信息管理系统**
[summary] 1361- package JSON and package lock JSON relationship
Advanced technology Er, meet internship position information
备战2022年金九银十必问的1000道Android面试题及答案整理,彻底解决面试的烦恼
云网络技术的好处以及类型
C#启动程序传递参数丢失双引号,如何解决?
六级易混词整理
matplotlib matplotlib中决策边界绘制函数plot_decision_boundary和plt.contourf函数详解
matplotlib 简单逻辑回归可视化
Hyper-v:hyper-v generation 1 or generation 2 virtual machines
第十五周作业
3、 Automatically terminate training
[reinforcement learning notes] common symbols in reinforcement learning
cazy長安戰役八卦迷宮