Interface test (apipost, jmeter and python script)

1. What is the interface

Interface is the standard capacity, or internal module callable modules connected to one external service provided by other systems, like usb interface, he is external to the system to provide a kind of physical interfaces for data transmission, of course, only is an interface that is not transmitted, we also of how this interface for transmission carried out some settings and definitions. Development interface is a so-called connection modules between the modules, and the eyes of the test interface is a protocol (a kind of interface-definition)
Second, how to test interface

1. Use an interface test tools

Such as: apipost, jmeter and other tools for interface testing.

apipost This interface testing tool, mainly for the generation and verification for interfaces interface documentation. apipost This interface testing tool, is a very lightweight interface verification tool, you can enter a request method, url, request parameters directly interface to access, verify that the interface is opened, you can also view the response value returned by the view interface development is normal. According to these interface verification information, you can directly generate online documents and offline word documents. It is a great tool for interface testing and interface document generation. Unlike swagger, the interface documents generated by swagger are all in English and it is not easy to read. Apipost also has collaborative work, which can effectively implement front-end interface joint debugging.

Interface test (apipost, jmeter and python script)

jmeter can interface testing and performance testing, but to do a simple interface test jmeter operation is not apipost easy to use. jmeter emphasis on stress testing, stability testing and load testing. Interface test tools for a performance-based interfaces to software testing, supplemented by the stability of the interface and the program design.

Interface test (apipost, jmeter and python script)

2. Script for interface testing

Generally use python+requests for interface testing. The principle of implementing the interface is the same as the interface test tool. Or an interface test by url, parameters, and request method.

Call requests and json, because the parameters are generally passed through json format.

Interface test (apipost, jmeter and python script)

This is the way to achieve a major test of the two interfaces, tools to use much simpler interface than the test script. All suggested that beginners use apipost interface test tools such as test interface test.

Tools Download:https://www.apipost.cn/?dt=20201103

Guess you like

Origin blog.51cto.com/12246704/2546405