当前位置:网站首页>The most complete postman interface test tutorial in the whole network, API interface test
The most complete postman interface test tutorial in the whole network, API interface test
2022-07-03 16:52:00 【Baili said test】
One 、 Why do interface tests ?

Because the work progress of different ends is different , Therefore, it is necessary to test the interface that comes out .
The benefits of doing interface testing :
1、 Saving time , Reduce project costs
2、 Improve work efficiency
3、 Improve the robustness of the system
Two 、 Necessity and significance of interface test
Interface testing is born to bring efficient defect detection and quality supervision capabilities to highly complex platforms , The more complex the platform , The bigger the system , The more effective the interface test is .
in general , Interface testing is the best solution to ensure the quality of high complexity systems and low-cost economic benefits , It is mainly reflected in the following three aspects :
1、 Save testing costs
2、 Interface test is a comprehensive, efficient and continuous test of system interface from the perspective of users .
3、 When the complexity and volume of the system are larger , The lower the cost of interface testing , Corresponding , The higher the benefit output .
3、 ... and 、 Why choose Postman Do interface tests ?
Now ,Postman More developers than 1000 ten thousand ( From official website ), Choose to use Postman For the following reasons :
1、 Simple and easy to use - To use Postman, You just need to log in to your account , As long as you install Postman Applications , You can easily access files anytime, anywhere .
2、 Use set - Postman Allow users to create for their API Call to create a collection . Each collection can create subfolders and multiple requests . This helps to organize the test structure .
3、 Multiplayer collaboration - You can import or export collections and environments , So as to facilitate the sharing of files . Using links directly can also be used to share collections .
4、 Create an environment - Creating multiple environments helps reduce test duplication (DEV/QA/STG/UAT/PROD), Because you can use the same set for different environments . This is where parameterization occurs , It will be introduced later .
5、 Create the test - Test checkpoints ( Such as verification HTTP Whether the response status is successful ) Can be added to each API in call , This helps ensure test coverage .
6、 automated testing - By using sets Runner or Newman, You can run tests in multiple iterations , Saves time for repeated testing .
7、 debugging - Postman The console helps to check the retrieved data , So it is easy to debug and test .
8、 Continuous integration - Through its ability to support continuous integration , Can maintain development practices .
Four 、 How to use Postman?
The picture below is Postman Working range of , The functions of some modules are introduced as follows :
| New | Create a new request here 、 Set or environment ; You can also create more advanced documents 、Mock Server and Monitor as well as API. |
| Import | This is used to import collections or environments . There are some options , For example, from a file , Folder import , Link or paste the original text . |
| Runner | Can pass Collection Runner Perform automated tests . Follow up . |
| Open New | Open a new label ,Postman Window or Runner window . |
| My Workspace | You can create new workspaces individually or as a team . |
| Invite | By inviting team members to work together in the workspace . |
| History | History of all requests , This makes it easy to track what you do . |
| Collections | Organize your test suite by creating collections . Each collection may have subfolders and multiple requests . Requests or folders can also be copied . |
| Request tab | This will display the title of the request you are processing . By default, for requests without a title “Untitled Request”. |
| HTTP Request | Clicking it will display a drop-down list of different requests , for example GET, POST, COPY, DELETE, |
| Request URL | Also known as endpoint , Show API Of URL. |
| Save | If changes are made to the request , You must click save, So that new changes are not lost or overwritten . |
| Params | Here you will write the parameters required for the request , such as Key - Value. |
| Authorization | In order to visit api, Appropriate authorization is required . It can be Username、Password、Token The form such as . |
| Headers | Request header information |
| Body | Request body information , Generally in POST Will be used in |
| Pre-request Script | Request before Execute the script first , Use the pre request script for setting up the environment to ensure that the test runs in the correct environment . |
| Tests | These scripts are executed during the request . Testing is very important , Because it sets checkpoints to verify that the response state is normal 、 Whether the retrieved data meets the expectations and other tests . |
| Settings | The latest version has settings , Not usually used . |

postman Follow up use and technical points can see another article of mine :
边栏推荐
- Processing strategy of message queue message loss and repeated message sending
- NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)
- Interpretation of several important concepts of satellite antenna
- 建立自己的网站(23)
- How to set up SVN server on this machine
- 线程池执行定时任务
- 什么是质押池,如何进行质押呢?
- CC2530 common registers for port initialization
- 斑馬識別成狗,AI犯錯的原因被斯坦福找到了
- Unreal_ Datatable implements ID self increment and sets rowname
猜你喜欢

What material is sa537cl1? Sa537cl1 corresponds to the national standard material

Unreal_ Datatable implements ID self increment and sets rowname

建立自己的网站(23)

What kind of material is 14Cr1MoR? Analysis of chemical composition and mechanical properties of 14Cr1MoR

word 退格键删除不了选中文本,只能按delete

Explore Netease's large-scale automated testing solutions see here see here

CC2530 common registers for crystal oscillator settings

13mnnimo5-4 German standard steel plate 13MnNiMo54 boiler steel 13MnNiMo54 chemical properties

ucore概述

Mysql database DDL and DML
随机推荐
浅谈拉格朗日插值及其应用
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
PHP CI (CodeIgniter) log level setting
PHP production website active push (website)
Overview of satellite navigation system
PHP converts a one-dimensional array into a two-dimensional array
One article takes you to understand machine learning
Golang decorator mode and its use in NSQ
C语言字符串反转
Fast Ethernet and Gigabit Ethernet: what's the difference?
What is the maximum number of concurrent TCP connections for a server? 65535?
Capacités nécessaires à l'analyse des données
PHP secondary domain name session sharing scheme
LeetCode 1658. Minimum operand to reduce x to 0
Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
【剑指 Offer 】64. 求1+2+…+n
CC2530 common registers
[combinatorics] non descending path problem (number of non descending paths with constraints)
【剑指 Offer 】57 - II. 和为s的连续正数序列
2022爱分析· 国央企数字化厂商全景报告