当前位置:网站首页>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 :
边栏推荐
- [sword finger offer] 58 - I. flip the word order
- CC2530 common registers for port initialization
- Simulink oscilloscope data is imported into Matlab and drawn
- Le zèbre a été identifié comme un chien, et la cause de l'erreur d'AI a été trouvée par Stanford
- PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
- 爱可可AI前沿推介(7.3)
- 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
- Necessary ability of data analysis
- 深入理解 SQL 中的 Grouping Sets 语句
- [JDBC] API parsing
猜你喜欢

CC2530 common registers for timer 1

斑馬識別成狗,AI犯錯的原因被斯坦福找到了

Fast Ethernet and Gigabit Ethernet: what's the difference?

8 cool visual charts to quickly write the visual analysis report that the boss likes to see

NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)

New features of C 10

静态程序分析(一)—— 大纲思维导图与内容介绍

Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..

Network security web penetration technology

MySQL converts comma separated attribute field data from column to row
随机推荐
MySQL user management
Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
静态程序分析(一)—— 大纲思维导图与内容介绍
Recommendation of good books on learning QT programming
Characteristic polynomial and constant coefficient homogeneous linear recurrence
Zebras are recognized as dogs, and Stanford found the reason why AI made mistakes
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
什么是质押池,如何进行质押呢?
远程办公之如何推进跨部门项目协作 | 社区征文
NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)
【剑指 Offer】58 - II. 左旋转字符串
Bcvp developer community 2022 exclusive peripheral first bullet
美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
CC2530 common registers for port interrupts
[mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
Thread pool executes scheduled tasks
Is it safe to open a stock account by mobile registration? Does it need money to open an account
What is the maximum number of concurrent TCP connections for a server? 65535?
Nifi from introduction to practice (nanny level tutorial) - flow
关于视觉SLAM的最先进技术的调查-A survey of state-of-the-art on visual SLAM