After creating a function, you can directly test it in the following ways to understand the function execution conditions and check the code execution process.
Functions are executed in an event-triggered method. Different triggers pass different event data structures when they trigger functions. The function testing method is to trigger the function by sending a simulated test event.
The SCF console provides the following event templates to simulate corresponding events:
By clicking Change on the template management page in the console, you can change the currently used test template to another system-defined or custom template. For more information on message structures in event templates, please see Trigger Event Message Structure Summary.
In addition to the system-provided event templates, you can create more custom templates. By clicking Configure on the template management page in the console, you can modify an existing template and save it as a custom template, or directly enter a test event designed by yourself and save it as a custom template.
When using the test event template feature, you need to pay attention to the following:
Was this page helpful?