当前位置:网站首页>Postman interface test practice, these five questions you must know
Postman interface test practice, these five questions you must know
2022-07-02 19:57:00 【Xiaowu knock code】
In our daily testing work , Interface testing is very common , Whatever test you do , function 、 Automation or performance testing , Will be more or less exposed to the interface .
Recently, many people have come to ask me : How to test the interface test ? What are the interface test tools ?
Let me help you analyze them one by one :
1、 What is an interface ?
It can be simply understood as an open entrance for connection , For example, the continuity between the front end and the back end requires interfaces , The interface is also required for the link between the mobile terminal and the background . Connect the front end, back end and mobile end .
2、 What are the types of interfaces ?
There are generally two types of interfaces :
1. Program internal interface
2. External interface of the system
External interface of the system : For example, you need to get resources or information from other websites or servers , No one else will share the database with you , He can only give you a way they've written to get the data , You can use the method he wrote by referring to the interface provided by him , In order to achieve the purpose of data sharing .
Program internal interface : Between methods , Interaction between modules , The interface thrown inside the program , such as bbs System , There are login modules 、 Post module and so on , If you want to post, you have to log in first , Then the two modules have to interact , It will throw out an interface , For internal system call .
3、 Classification of interfaces
1.webservice Interface
2.http api Interface
webService The interface is to go soap Agreement passed http transmission , Both request message and return message are xml Format , We use the tools to call when testing , test .
http api The interface is to go http agreement , Differentiate called methods by path , The request message is key-value Formal , The return message is usually json strand , Yes get and post Other methods , This is also the two most commonly used request methods .
json Is a generic data type , All languages know it
4、 What is interface testing ?
Interface test is a test to test the interface between system components . The interface test is mainly used to detect the interaction points between the external system and the system as well as between the internal subsystems . The focus of the test is the exchange of data , Transfer and control the management process , And the mutual logical dependency between systems , This requires a certain understanding of business logic , Better positioning of data flow .
5、 How to do interface testing ?
During the test , Many scenarios require testers to test an interface , Different test schemes are designed for different types of interfaces , At this time, if there is a powerful interface testing tool , Just finish the tedious work quickly , Greatly improve work efficiency . There are many tools like :postman、jmeter、soupUI、java+httpclient、robotframework+httplibrary etc. .
It can also be realized by interface automation , It's code implementation , The framework and UI Automation is almost , Send request to judge by assertion .
Now let me introduce you to an interface test artifact ——Postman, I hope it can help friends who want to learn interface testing !
What is? postman?
Postman Is an interface testing tool developed by Google , Can send any type of http request , Support GET/PUT/POST/DELETE Other methods .
Postman It's very easy to use , You can fill in URL,header,body Wait, you can send a request , For testing api The interface is very convenient . I used to only support chrome The plug-in now has a separate application .
choice Postman Why ?
Final decision to use postman Conduct interface test , This tool is relatively simple to use at present , But there are still many , as follows :
1、 It is convenient to switch different environments for interface testing , Without modifying variables or code
2、 You can use only plug-ins directly in the browser ( At present, the Google system plug-in has not been updated )
3、 You can talk to newman and jenkins Integration for automated build , It's more convenient
Postman How to do interface testing ?
postman Very powerful , It's easy to use , Say below postman How to test the interface :
1. download postman plug-in unit :
①Chrome Plug in installation address ( To climb over a wall ):https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddcbncdddomop?hl=en
② Install and download locally https://www.getpostman.com/apps, After downloading, click next to install
2.chrome Browser settings - More tools - Found... In the extender postman plug-in unit , find postman, Click the start button , open postman
3.postman Page details 
4.postman Simple implementation post request
a. Fill in url
b.body Zhongtianxia parameter name and parameter value
d. Check whether the returned result data is consistent with expectations 
Do interface automation testing , Can only use Postman、Jmeter These interface testing tools , Is not enough . The core is to learn the whole process of interface testing , framework design , And the most important interface design thinking mode , It's not a problem to encounter any interface problems in the future .
Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !

These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……
If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card at the bottom of the text to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
| Click the small card at the end of the document to receive it |
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
Zero basis transition software testing :38 God ! Self taught software testing , Got the byte test post offer, Is the B The best video station !
Advanced automation testing :2022 Most suitable for self-study python Automated test tutorial , Spend it yourself 16800 Bought , Now share for free !
边栏推荐
- PXE installation "recommended collection"
- What is the Bluetooth chip ble, how to select it, and what is the path of subsequent technology development
- pytorch 模型保存的完整例子+pytorch 模型保存只保存可訓練參數嗎?是(+解决方案)
- For (Auto A: b) and for (Auto & A: b) usage
- Design and implementation of ks004 based on SSH address book system
- [daily question] 241 Design priorities for operational expressions
- API文档工具knife4j使用详解
- Shardingsphere jdbc5.1.2 about select last_ INSERT_ ID () I found that there was still a routing problem
- AcWing 903. Expensive bride price solution (the shortest path - building map, Dijkstra)
- Zabbix5 client installation and configuration
猜你喜欢

数据湖(十二):Spark3.1.2与Iceberg0.12.1整合

Istio1.12:安装和快速入门
![[daily question] 241 Design priorities for operational expressions](/img/27/4ad1a557e308e4383335f51a51adb0.png)
[daily question] 241 Design priorities for operational expressions

Notes on hardware design of kt148a voice chip IC

攻防世界pwn题:Recho

良心总结!Jupyter Notebook 从小白到高手,保姆教程来了!

CS5268完美代替AG9321MCQ Typec多合一扩展坞方案

MySQL function

B-end e-commerce - reverse order process

After writing 100000 lines of code, I sent a long article roast rust
随机推荐
One side is volume, the other side is layoff. There are a lot of layoffs in byte commercialization department. What do you think of this wave?
Kt148a voice chip instructions, hardware, protocols, common problems, and reference codes
burp 安装 license key not recognized
外包干了三年,废了...
AcWing 342. Road and route problem solving (shortest path, topological sorting)
基于SSM实现网上购物商城系统
How to avoid duplicate data in gaobingfa?
分享几个图床网址,便于大家分享图片
Design and implementation of ks004 based on SSH address book system
CRM Customer Relationship Management System
AcWing 1127. Sweet butter solution (shortest path SPFA)
VBScript详解(一)
自動生成VGG圖像注釋文件
[译]深入了解现代web浏览器(一)
RPD product: super power squad nanny strategy
Implementation of online shopping mall system based on SSM
In depth understanding of modern web browsers (I)
KS004 基于SSH通讯录系统设计与实现
KT148A语音芯片ic的软件参考代码C语言,一线串口
【Hot100】22. 括号生成