Interface testing is a test that tests the interfaces between system components. Interface testing is mainly used to detect interaction points between external systems and systems and between internal subsystems. The focus of testing is to check the correctness of interface parameter transfer, correctness of interface function implementation, correctness of output results, and the completeness and rationality of fault-tolerant processing of various abnormal situations.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
Interface testing is a test that tests the interfaces between system components. It is mainly used to test the interfaces between the system and other external systems, as well as the interfaces between sub-modules within the system. The focus of testing is to check the correctness of interface parameter transfer, correctness of interface function implementation, correctness of output results, and the completeness and rationality of fault-tolerant processing of various abnormal situations.
The classification of software interfaces generally has the following situations:
1) Calls between systems. For example, WeChat provides users with a unified external interface, and programmers call the interface to complete based on WeChat mini programs, etc.;
2) The upper-layer service within the same system calls the lower-layer service. For example, a software program is generally divided into a presentation layer, a business layer and a data layer. The presentation layer calls the interface of the business layer to complete. Do your own work, and the business layer will call the interface of the data layer to implement the corresponding business, etc.
Its core is to ensure the correctness and stability of the system, and its importance is mainly reflected in the following aspects:
(1) Being able to detect bugs early is in line with the concept of quality control moving forward.
(2) Interface testing is cost-effective and cost-effective because interface testing can be automated and is continuously integrated.
(3) Interface testing comprehensively detects the system interface from the user's perspective. In actual projects, interface testing will cover a certain degree of business logic
Scope of use:
Interface testing is generally used for interactive development between multiple systems, or for the development of application systems with multiple subsystems test. Interface testing is suitable for underlying framework systems and central service systems that provide services for other systems. It mainly tests the interfaces provided by these systems to the outside to verify their correctness and stability. Interface testing is also applicable to the service layer interface in an upper-layer system. The higher the layer, the more difficult the test becomes. The application of interface testing in Taobao is a bottom-up development process.
Interface testing is implemented under a multi-system and multi-platform architecture, with an extremely efficient cost-benefit ratio. Interface testing is inherently designed to bring efficient defect monitoring and quality supervision capabilities to high-complexity platforms. The more complex the platform and the larger the system, the more obvious the effect of interface testing.
The purpose of interface testing is to test the interface, especially those external interfaces associated with the system. The focus of the test is to check the exchange, transmission and control management process of data, including the number of processing times. External interface testing is generally viewed as system testing.
Not all teams can perform testing in an isolated testing environment, making it difficult to test external interfaces. We should ensure that plans for external interface testing are coordinated early with the relevant organizations. Sometimes the relevant organizations only manually and statically review the data without actually using the data for testing. These all increase the risks encountered in actual test execution, but sometimes they can be avoided.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is interface testing. For more information, please follow other related articles on the PHP Chinese website!