当前位置:网站首页>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 .
边栏推荐
- Dio encapsulated by the flutter network request (cookie management, adding interceptors, downloading files, exception handling, canceling requests, etc.)
- What do l and R of earphone mean?
- APP测试要点
- 民航局:到 2025 年我国将初步建成安全、智慧、高效和绿色的航空物流体系
- 数据治理,说起来容易,做起来难
- China coated abrasive tools industry market depth analysis and development strategy consulting report 2022-2028
- Interview shock 23: talk about thread life cycle and transformation process?
- A3.ansible production practice case -- system initialization roles
- Simple and easy-to-use cache library gcache
- 2022-2028 global web and browser isolation platform industry research and trend analysis report
猜你喜欢

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

ES6-- 模板字符串、对象的简化写法、箭头函数

Nacos 源码分析01 代码结构

2022-2028 global iridium electrode industry research and trend analysis report

2022-2028 global industrial TFT LCD industry survey and trend analysis report
Interview shock 23: talk about thread life cycle and transformation process?

2022-2028 global TFT LCD touch screen industry research and trend analysis report

Fastjson反序列化随机性失败

2022-2028 global RBI platform industry research and trend analysis report

Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?
随机推荐
Talk about adapter mode
华为云短信测了很多手机都提示发送频繁
Analysis report on scale investigation and investment development suggestions of China's special equipment inspection and testing industry 2022-2028
Unity技术手册 - 粒子基础主模块属性-上
Jz-064- maximum value of sliding window
This 110 year old "longevity" enterprise has been planning for the next century
【EOSIO】EOS/WAX签名错误 is_canonical( c ): signature is not canonical 问题
Unity技术手册 - 生命周期内颜色ColorOverLifetime--速度颜色ColorBySpeed
NRM source switching tool
2022-2028 global TFT LCD touch screen industry research and trend analysis report
Flutter 网络请求封装之Dio(Cookie管理、添加拦截器、下载文件、异常处理、取消请求等)
Huawei cloud SMS has tested that many mobile phones prompt frequent sending
Nacos 源码分析01 代码结构
Trillions of hot money smashed into the space economy. Is it really a good business?
Global and Chinese flame retardant ABS industry development trend and market demand analysis report 2022 ~ 2028
adb常用命令
Why can't the mobile phone be used and the computer be connected
How to use the find command
Unity technical manual - particle emission and life cycle velocity sub module
Cvpr2022 tutorial | machine learning remote sensing processing: agriculture and food security, University of Maryland