当前位置:网站首页>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 :
边栏推荐
- Kindeditor editor upload image ultra wide automatic compression -php code
- Using optimistic lock and pessimistic lock in MySQL to realize distributed lock
- 【剑指 Offer】58 - I. 翻转单词顺序
- Bcvp developer community 2022 exclusive peripheral first bullet
- Yu Wenwen, Hu Xia and other stars take you to play with the party. Pipi app ignites your summer
- 【剑指 Offer 】57 - II. 和为s的连续正数序列
- 27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
- 关于学习Qt编程的好书精品推荐
- Mysql 将逗号隔开的属性字段数据由列转行
- [Jianzhi offer] 57 - ii Continuous positive sequence with sum s
猜你喜欢

Visual SLAM algorithms: a survey from 2010 to 2016

一台服务器最大并发 tcp 连接数多少?65535?

What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels

What is the material of sa302grc? American standard container plate sa302grc chemical composition

CC2530 common registers for crystal oscillator settings

A survey of state of the art on visual slam

Static program analysis (I) -- Outline mind map and content introduction

MySQL converts comma separated attribute field data from column to row

Mysql 将逗号隔开的属性字段数据由列转行

8 cool visual charts to quickly write the visual analysis report that the boss likes to see
随机推荐
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Idea configuration plug-in
Golang decorator mode and its use in NSQ
"The NTP socket is in use, exiting" appears when ntpdate synchronizes the time
Add color to the interface automation test framework and realize the enterprise wechat test report
(Supplement) double pointer topic
【剑指 Offer 】57 - II. 和为s的连续正数序列
JSON 与 BSON 区别
浅谈拉格朗日插值及其应用
2022.02.14_ Daily question leetcode five hundred and forty
[2. Basics of Delphi grammar] 2 Object Pascal data type
CC2530 common registers for ADC single channel conversion
CC2530 common registers for watchdog
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
What is the maximum number of concurrent TCP connections for a server? 65535?
What is the pledge pool and how to pledge?
Why is WPA3 security of enterprise business so important?
What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels
【剑指 Offer】58 - I. 翻转单词顺序
[Jianzhi offer] 57 - ii Continuous positive sequence with sum s