3
头图

After the interface development is completed, we need to call the interface to test the performance of the interface. When the performance meets the expectations, it means that the interface is available.

During the test, we may pay attention to the status code , response body and response time . Eoapi will show you all these data to help you judge whether the API is normal.

2022-03-30-11-51-08.d8a767df.png

Before starting the test, we need to fill in the test data~, you can click the plus sign of the tab to create a new test tab.

2022-03-30-11-44-21.1742efdc.png

You can also quickly test an API by clicking the lightning icon of the grouped API.

2022-03-30-11-45-40.54e77245.png

It is often faster to learn new knowledge by analogy with existing knowledge. Usually, we usually look at the API request information in the browser. What is the corresponding location of this information in Eoapi? I believe that you will soon know how to test in Eoapi through the following comparison chart:

The same underline color represents the same module

http-headers-reflect.7101176b.png
Request URL/Request Method/Request Header/Query Parameters

The Query parameter may be filled in the API Path, and Eoapi will automatically synchronize it to the table of the Query parameter.

First confirm your HTTP request body format, select the corresponding request body format and click the Test button.

2022-04-01-15-31-56.c7f1cb7f.png

You can see the corresponding API response information!

图片

By clicking on the test history, you can also trace back all the API request information tested at that time, and quickly return to the test.

图片

The interface testing tool used in this article is Eoapi , which is an open source api management tool , which is lightweight and extensible.

Of course, if you think it is not enough to meet your needs, and if you have any good ideas, you may as well file an issue on Github, and the project developers will reply in time.

The project also has complete development documents. If you have any technical questions, you can also communicate with them, and PM will reply in time.

Github address: https://github.com/eolinker/eoapi
Documentation address: https://docs.eoapi.io/?utm_source=SF080301


气势凌人的柿子
310 声望3 粉丝