当前位置:网站首页>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 :
边栏推荐
- 【剑指 Offer】58 - II. 左旋转字符串
- 8 cool visual charts to quickly write the visual analysis report that the boss likes to see
- 【剑指 Offer 】57 - II. 和为s的连续正数序列
- (Supplement) double pointer topic
- NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri
- Processing strategy of message queue message loss and repeated message sending
- [Jianzhi offer] 64 Find 1+2+... +n
- Thread pool executes scheduled tasks
- How programming apes grow rapidly
- LeetCode 1657. Determine whether the two strings are close
猜你喜欢

Learn from me about the enterprise flutter project: simplified framework demo reference

Network security web penetration technology
![[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe](/img/9d/6118b699c0d90810638f9b08d4f80a.jpg)
[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe

为抵制 7-Zip,列出 “三宗罪” ?网友:“第3个才是重点吧?”

Idea configuration plug-in

网络安全web渗透技术

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

(补)双指针专题

Aike AI frontier promotion (7.3)

What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels
随机推荐
Hong Kong Polytechnic University | data efficient reinforcement learning and adaptive optimal perimeter control of network traffic dynamics
【剑指 Offer】58 - I. 翻转单词顺序
Meituan side: why does thread crash not cause JVM crash
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
Static program analysis (I) -- Outline mind map and content introduction
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
BYD and great wall hybrid market "get together" again
Mysql database -dql
Top k questions of interview
UCORE overview
Threejs Part 2: vertex concept, geometry structure
Add color to the interface automation test framework and realize the enterprise wechat test report
静态程序分析(一)—— 大纲思维导图与内容介绍
Visual SLAM algorithms: a survey from 2010 to 2016
8 cool visual charts to quickly write the visual analysis report that the boss likes to see
Mysql database DDL and DML
Is it safe to open a stock account by mobile registration? Does it need money to open an account
【剑指 Offer】58 - II. 左旋转字符串
Recommendation of good books on learning QT programming