1. What is interface testing?
Interface test is a test of indirect interface of system component, which is between unit test and system test.
Interface testing is mainly used to detect the interaction points between external systems and internal subsystems.
The focus of the test is to check the data exchange, transfer and control management process, as well as the logical interdependence between systems.
In other words, an interface test is when the developer implements the interface, and we need to verify that the implementation of the interface is correct. But this is a background function, do not want to let the front end personnel involved, because it will be more troublesome to let the front end personnel involved.
To summarize: Interface testing replaces the front end to verify that the server program is correct.
2. The principle of interface test
Testers use tools to simulate the client sending requests to the server.
After receiving the request, the server will process the request and respond the result to the client.
A process in which a tester evaluates the results after a client receives response data.
Interface tests are black box tests. As a black box test, the basic idea of testing is to determine whether the logic of the system or object under test is correct through the input and output.
3. What is the basis of interface testing
Demand. Being familiar with actual business requirements can help us better design test cases and prepare test data. Interface documentation. Develop and execute the interface test script according to the interface description document. The prototype. Based on the prototype diagram, we can better judge whether the actual test data conforms to the logical relationship between interfaces.
4. Classification of interface tests
Web interface testing:
Server interface testing: testing the interface implemented by your own company
Calls between different modules and services within the same system.
For example, the current mainstream system architecture is the application layer, service layer and data layer. Application layer: responsible for presenting data and initiating data requests. Service layer: Provides data processing for the application layer. Data layer: Used to store data, such as relational databases, the interaction between the layers is through the server interface.
Third party interface testing: Testing interfaces implemented by other companies (interface calls between different systems or even between different companies)
Many third-party interfaces will be used in the project. For example, to make a system to display the daily weather, how do you get the weather data? It is not possible to predict the weather yourself, there are free third-party interfaces available, just call the weather data you want according to the interface protocol. Of course this is calling data outside the system.
For example, when a third party logs in, it invokes the microblog and wechat login interfaces of external companies.
Module interface testing: Tests a method in a class, or an interface in a module.
A program internal interface testing, module interface testing is the basis of unit testing, it mainly tests the module call and return.
5. Characteristics of interface test
No UI: You cannot see the application interface during interface testing. No UI interaction: Since there are no UI pages, it is impossible to dot and dot on the UI. Unlike manual testing: interface automation testing can be used for continuous integration and has higher interface coverage. Protocol-based: An interface test is a test that uses an access protocol to test whether the protocol and content in the protocol are correct. Data verification: check the data exchange, transfer and control management process, including the number of processing, business logic is correct. Format verification: Data format verification of request parameters and return values, including default parameters, whether the returned data is complete, etc.
Write at the end:
No winter will pass, no spring will come, the past 2020 is an extraordinary year for people around the world, everyone is strong and brave in the fight against the epidemic, here we clap our hands together, 2021 is coming as promised, make good goals to continue to grow.