[Recommended] How to perform interface testing when there is no interface documentation

Before the interface test, the general development will provide interface documents, give some interface parameters and necessary familiarity, so that we can write interface scripts. But if there is no request for interface development documentation, how do we write interface test scripts? What are the necessary preparations before writing test scripts?

1. Interface capture tool
When there is no interface document, we need to use a packet capture tool. Here we can use fiddle to capture the packet to obtain interface data for interface testing
Insert picture description here
Insert picture description here
Insert picture description here

Fill in the captured interface data into the interface test tool

2. Interface testing tool
Interface testing tool can recommend domestic interface testing and interface document generation tool: apipost

It can not only meet the requirements of the interface test, but also generate a complete interface document after the interface test is completed, supplement the gaps without interface documents, and save the time of writing interface documents.

Write the interface data, fill in the url and body parameters, and click send to view the return value.

Insert picture description here

Export successful response example, and export fields

Insert picture description here

In the analysis interface, you can download the interface documents in markdown, word and other formats on the interface analysis page
Insert picture description here
Insert picture description here

This is the way to test an interface when there is no interface document. After the test, the corresponding interface test document can be generated.

Guess you like

Origin blog.csdn.net/weixin_47719617/article/details/113251341