Interface testing artifact, ApiKit, easy to use for personal testing

I follow a lot of official accounts. I have received articles about ApiKit before, and I have a general look at it. I haven’t used it yet!

Recently, I saw a lot of articles about ApiKit, so I spent some time researching it. After using it, I found that it is indeed more powerful than Postman, and the interface is more concise!

During the development process, multiple tools are often needed to complete their own interface testing tasks:

  • Interface documentation : Swagger, Yapi

  • Interface test : Postman, Postwoman

  • Mock:EasyMock、mock.js

  • Performance testing : Jmeter, Locust

The official position of ApiKit is

API management + Mock + automated testing + exception monitoring + teamwork

Specific official documents: https://help.eolink.com/tutorial/Apikit/c-1336

Let's take a look at it one by one

1. Interface debugging

API management application / select a project / API document menu / select an API document / click "Test" TAB

The API document test page can quickly test the interface described in the API document. The API document test page is divided into four parts: the address control bar, the request control area, the return display area, and the test aid area.

 

Initiate a quick test

Function entry: API management application / select a project / API document menu / select the plus sign next to the tab

 

2. Mock function

Front-end development often depends on the back-end data interface. Before the back-end interface is ready, the front-end is usually difficult to start. The Mock function is used to solve this problem.

With the Mock tool, the front-end and back-end can be developed synchronously. Before the back-end interface comes out, the front-end can use the Mock function to create a fake data interface for development and debugging.

Smart Mock

Function entry : API Management Application/Public Resource Menu/Smart Mock Setting Level 2 Menu When compiling the API document and returning the result, if the parameter field and type match the Smart Mock rule, the system will automatically fill in the corresponding Mock value. This function provides quick mock value configuration without feeling, and reduces the workload of mock rule configuration.

Smart Mock has two types of matching rules: built-in rules and custom rules.

The built-in rules are a complete set of preset smart mock rules. Users cannot edit specific matching rules, but can only enable or disable them as a whole. Built-in rules help users quickly use smart mocking capabilities.

Custom rules are user-defined and freely configurable intelligent Mock matching rules. Users can create, edit and delete custom rules according to individual needs. Supports wildcards, regular expressions, and exact matches to match field names.

Enable/disable built-in rules

1. Enter the smart mock settings in the application-level public resources, and you can see the custom rule module and built-in rule module.

 

3. Automated testing

Create an automated test project

In the API automated testing platform, all test cases are managed in the project dimension, and an automated test project can reference API information from multiple API document projects to create API test cases.

Enter the API automation test project list page and click the Add button:

 

Enter the corresponding information in the pop-up window and click OK:

 

When creating a project, you can also designate a member in the space to be the initial administrator of the project. He can help you manage personnel permissions in the project, such as binding members in the space to the project, or modifying certain The operation authority of each member, etc.

 

 

Official website download address:

https://www.eolink.com/?utm_source=cpcs&utm_content=cpy10

Guess you like

Origin blog.csdn.net/kungfuboy17/article/details/130871487