当前位置:网站首页>The concept of interface testing and the use of postman tools
The concept of interface testing and the use of postman tools
2022-07-27 06:25:00 【Small code transfer labor】
API(Application Programming Interface, Application programming interface ) Are some predefined functions , The purpose is to provide the ability for applications and developers to access a set of routines based on certain software or hardware , Without access to the source code , Or understand the details of the internal working mechanism .
What is interface testing ?
Interface test is to test the interface between systems or components , Mainly the exchange of verification data , Transfer and control the management process , And logical interdependence , The interface protocol is divided into HTTP,WebService,Dubbo,Thrift,Socket Other types .
Why do interface tests ?
The interface test is implemented under the multi system platform architecture , It has an extremely efficient cost-benefit ratio ( Of course , Unit testing is more profitable , But the cost of implementing unit testing is greater , Higher technical requirements ).
Interface testing naturally brings efficient defect detection and quality supervision capabilities to highly complex platforms , Complex platform , The bigger the system , The more effective the interface test is .
The advantages of interface testing are mainly reflected in the following three aspects :
1. Save testing costs .
Calculate according to the data model , A program at the bottom BUG May trigger UI Layer of 8 about BUG, And at the bottom BUG It is more likely to cause the crash of the whole network ; Interface testing can provide low-cost and efficient solutions when the system complexity increases .
2. The door bar of interface test is relatively low
Interface testing is different from unit testing , Interface test is a comprehensive, efficient and continuous test of system interface from the perspective of users .
3. More efficient
Implement interface testing as automation and continuous integration , When the complexity and volume of the system are larger , The lower the cost of interface testing , Corresponding , The higher the benefit output .
How to do interface testing ?
The basic interface function automation test process is as follows :
Demand analysis -> Use case design -> Script development -> The test execution -> Result analysis
Demand analysis
Requirement analysis is a reference requirement 、 Design and other documents , On the basis of understanding the requirements, we also need to know the internal implementation logic , And you can put forward requirements at this stage , Unreasonable or omission in the design .
Use case design
Use case design is based on understanding interface test requirements , Use Excle or XMind Such as mind mapping software to write test case design , The main contents include parameter verification 、 Business scenario verification 、 Safety and performance verification, etc , The commonly used design methods are equivalent class division 、 Boundary value analysis 、 Scenario analysis , Cause and effect diagram 、 Orthogonal table, etc .
Script development
Use your familiar language or tools to develop .
The test execution
You can run the interface test script directly or use CI To perform tests .
Result analysis
Analyze the interface test results according to the test report .
Postman Introduction and use
postman It is a web page mode and sending web page Http request , And run Google plug-ins for test cases .
The main functions include :
Simulate all kinds of HTTP request
边栏推荐
- UnityShader-LowPoly
- 技术和理论知识学习的一点心得
- Remote sensing image recognition misclassification under multi class recognition
- ROS节点名称重名
- Shell脚本编写格式
- ROS运行管理之launch文件
- Chapter for software testing
- Wireshark packet modification -- IP address modification (I)
- Dynamic programming for solving problems (1)
- Understand the pointer in a picture
猜你喜欢
随机推荐
多线程常见锁的策略
Automated Deployment Project
Brief introduction to unity window interface
英语基础知识:定语使用规则下篇
多坐标变换
wireshark图形界面抓包
Dynamic programming for solving problems (7)
IP核之RAM
Sexy prime number (acwing daily question)
Automatic tracking
Ram of IP core
Wireshark function introduction
Progress in remote sensing image recognition 2022/5/5
Socket long link
5g network identity - detailed explanation of 5g Guti
Related knowledge of multithreading
Shell script if nested for loop script
数据库的约束以及设计
shell script if嵌套for循环脚本
bug分类及缺陷和csv文件测试









