All Products
Search
Document Center

DataWorks:Test a function

Last Updated:Nov 28, 2024

This topic describes how to test a function.

Prerequisites

A function is created and saved. For more information, see Manage functions.

Limits

You can test a function only as a workspace owner or a RAM user to which the Workspace Manager, Development, or O&M role is assigned. For more information, see Add a RAM user to a workspace as a member and assign roles to the member.

Test a function

  1. Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose Data Development and Governance > DataService Studio. On the page that appears, select the desired workspace from the drop-down list and click Go to DataService Studio.

  2. In the left-side navigation pane of the Service Development page, find the function that you want to test and double-click the name of the function.

  3. On the configuration tab of the function, click Test in the upper-right corner.

    Test

  4. In the Function Test dialog box, specify Input parameters and click OK.

    You can view the running status on the Execution results tab at the bottom. If the test fails, perform modifications based on the error message and test the function again.