Some simple understanding of the interface testing

What is the interface test (What)?

The process by calling for the interface test tools, test scripts, etc. analog front end, complete testing way. Interface test not only can be used to complete functional testing, can also complete performance testing, security testing and so on.

Why choose Interface Test (Why)?

1, with respect to the interface test ui test can be more accurately coverage logical functions more directly observed input and output data, process, process automation costs lower than the UI Automation;

2, with respect to the test unit, the test low cost, scalability;

3, the lower threshold test, the program does not depend on strong development capability;

4, high efficiency, to support continuous integration

How to complete the interface test (How)?

Interface testing and functional testing normal process is the same.

1, needs assessment, requirements analysis. As soon as possible to participate in the program development process, make unreasonable demands on the design is conducive to the quality of risk procedures, cost control, and so do the test output efficiency control as soon as possible;

2, Design cases. Example design process used, can be layered, the sub-module, complete with the corresponding embodiment from different angles. The terms of interface design, divided into the reference calibration basis, traffic into the reference check, return results like; from the perspective of the service module, the interface when a function corresponding to a full, complete design can be used according to different cases test scenarios, a plurality of when the interface corresponding to a full function, implemented in accordance with step, separating a scene case design

3, script development. This process is mainly to simulate call interface mode. Depending on the type of interface protocols and different testing requirements, implementations are also diverse. Such as the common external interface protocol has WebService, HTTP, others such as socket, dubbo and so on. With http, for example, to complete the basic interface test only needs the postman, jmeter and other tools, according to the standard http protocol to complete the call and return the results to the Senate process. Which may need to get a signature, token, etc.

4, execution cases. The complete test execution procedure used in Example

5, the results of the analysis. The test results were analyzed to locate the problem, bug submission

Advanced Test Interface - Interface Automation (To be continued)

 

Guess you like

Origin www.cnblogs.com/olio1993/p/11263121.html