This section uses the latest function version as an example to describe the test method. To test a released function version, go to the Function code tab page on the details page of the function version and test the function version based on method 2.
You can test the created function in AppGallery Connect to check whether the function code can run properly. Go to the test page in either of the following ways:



Click Test to test the function.

To set the request body for calling the function, you can perform the following operations to set test parameters and save the configuration as a test event for future use:
The JSON object entered in the Event text box corresponds to the event format of the trigger and will be transparently transmitted to the function.

to expand the list of saved test events, click Load on the right of a saved event, and click Test. The function will process the event and return the test result.





To modify the code file of a function whose Code input type is *.zip file during the test, you can modify the local code file, package the modified file, click
to upload the packaged file, and click Submit at the bottom of the page. After the function is updated successfully, you can click Test to test the modified code.
If a large amount of code is modified and the function memory setting needs to be changed, you can select a value from the Memory (MB) drop-down list box, and then upload the function deployment package.
