How to Test APL Code

After completing the APL code, you can select the data to test your APL code

Test steps:

  1. On the function editing page, select the data source to be tested
    The data source comes from the latest 10 pieces of data of the object bound by the APL function, which is used to simulate the context data of the function in the business scenario

If the code adds, deletes, or modifies data, the test process will actually operate the data. In this scenario, it is recommended to choose to create test data for testing

  1. After selecting the data source, click the "Script Test" button to test
  1. The test results of the function will be displayed in the console area below, and the displayed content includes:
    The log.info and log.debug content in the code
    function return result
  1. Click the "Scan Function" button, and the system will provide some suggested optimization solutions for the content of the current code

In the VScode IDE tool, you can also test the code offline. For details, refer to: 8.9 VScode IDE

2024-07-12
0 0