当前位置:网站首页>How to use JMeter for interface testing
How to use JMeter for interface testing
2022-06-25 23:01:00 【Old t teaching test】
1, understand jmeter The overall architecture of interface testing
1) test plan : Don't worry about this , This is the fixed default
2) Thread group : From the business level, it can be understood as a whole business scenario or process , Under the thread group, there can be multiple http request
3)http request : The interface supporting the whole business in the business scenario , Simply put, set the interface here
4) View the result tree : View the request or response information of the interface .

2, The overall architecture is explained in detail
1) Thread group :
For us to do interface testing , In the thread group, you only need to understand the function of the number of cycles , It is not difficult to understand from the literal meaning , Is the number of cycles to the request interface . notes : The operation of each thread group only applies to http request , If you create a group with multiple threads , Each thread group is independent , Operation without collusion and interference .

2)http request :
agreement : Represents the protocol of the interface , It's usually http or https.
Server name or ip: Indicates the domain name or route .
Port number : Port number of the interface , If there is no separate setting, it will not be filled in by default
http request : The request mode of the interface , You can choose from the drop-down menu
route : Path of interface
Parameters : Upload form data
Message body data : When the interface needs to upload data in text or other formats
Upload files : Upload file settings
Let's say I have one post request , The port number is 88888 Of login Interface :https://applogin.com/login. He needs to pass 2 Parameters , One is users, The other one is password. The picture below is in jmeter Request settings on .

3) View the result tree :
View the interface response or request contents , Roughly divided into 2 part , One part is the content presentation format , The other part is the presentation of the content , notes : Click the green arrow at the top to execute , It's the arrow on the left, not the arrow on the right
Text format

Content display ( Request and response information )

Later articles will explain : Request header , Parameters , Assertion , And extractors
If there is no interface for the experiment, you can make private comments , use Python Yes 3 Interface , The data content comes from the table , Sign in , register , Cancellation .
边栏推荐
- 哪些PHP开源作品值得关注
- 异或运算符简单逻辑运算 a^=b
- How to design a complex business system? From the understanding of domain design, cloud native, micro service, and middle platform
- How do I project points on a 3D plane- How to project a point onto a plane in 3D?
- 万亿热钱砸向太空经济,真的是一门好生意?
- [intensive lecture] 2022 PHP intermediate and advanced interview questions (II)
- 面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?
- [invitation letter] on March 4, the platform enabled digital intelligence Innovation -- UFIDA BiP PAAS cloud platform IUAP digital intelligence hundred cities forum · Jinan Station
- Another breakthrough! Alibaba cloud enters the Gartner cloud AI developer service Challenger quadrant
- 华为云短信测了很多手机都提示发送频繁
猜你喜欢
![Lecture 14 of the Blue Bridge Cup -- number theory [exercises]](/img/96/0971909c8bf25820c2d4f520bb83fb.jpg)
Lecture 14 of the Blue Bridge Cup -- number theory [exercises]

2022-2028 global horizontal reciprocating compressor industry research and trend analysis report

2022 love analysis · panoramic report of it operation and maintenance manufacturers

2022年河南省第一届职业技能大赛网络安全项目试题

多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%...

2022-2028 global vacuum jacket system industry survey and trend analysis report

Simple and easy-to-use cache library gcache

Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?

Zhihu Gaozan: what ability is important, but most people don't have it?

Oracle - 基本入门
随机推荐
关闭MongoDB一些服务需要注意的地方(以及开启的相关命令)
QT learning setting executable exe attribute (solving the problem of Chinese attribute garbled)
2022爱分析· IT运维厂商全景报告
Global and Chinese oleic acid operation mode and market supply and demand forecast report 2022 ~ 2028
作为一个程序员我们如何快乐的学习成长进步呢?(个人感悟和技术无关)
Hello, teacher, is it really safe to open an account in Alipay fund?
多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%...
字符串变形(字符串大小写切换和变现)
Why absolute positioning overlaps
ES6-- 模板字符串、对象的简化写法、箭头函数
[dynamic programming] longest palindrome substring thinking about dynamic transfer cycle sequence
Global and Chinese flame retardant ABS industry development trend and market demand analysis report 2022 ~ 2028
Another breakthrough! Alibaba cloud enters the Gartner cloud AI developer service Challenger quadrant
提问的智慧?如何提问?
MySQL数据库索引
Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology
Analysis of China's tractor manufacturing and operation situation and forecast report of prospect trend 2022-2028
Raspberry PI (bullseye) replacement method of Alibaba cloud source
How to disable the optical drive
[invitation letter] on March 4, the platform enabled digital intelligence Innovation -- UFIDA BiP PAAS cloud platform IUAP digital intelligence hundred cities forum · Jinan Station