Create an API test task

Updated at:

Create an API test task to simulate a real-world calling scenario. This lets you call an API through the gateway, test its status, and verify that it works as expected.

Prerequisites

The API has been published. For more information, see Publishing an API.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 菜单 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workgroup, and then click Asset Processing.

  4. In the navigation pane on the left, click the API icon and choose API Development > API Test Task.

  5. On the API Test Task page, click Create Test Task.

  6. In the Create API Test Task dialog box, configure the task parameters.

    Parameter

    Description

    Task Name

    Enter a name for the task.

    Select Application

    Select one or more applications.

    Select API

    Select one or more APIs to test.

    Parameter Adjustment Settings

    Select a parameter adjustment type. Data sampling and traffic playback are supported.

  7. After you configure the parameters, click OK.

Related operations

Task

Description

Copy task

After the task runs, in the Actions column of the task, click Copy Task. A new task is created with a Pending status.

Delete task

In the Actions column of the task, click Delete to delete the task.

What to do next

After you create an API test task, run the task. For more information, see Run an API test task.