To view this content in our official product documentation, click here.
Introduction
The script editor has an integrated testing panel, to the right of your code:

Here, you can enter a sample payload with (if needed by the script) sample variables and run the script in test mode.
The steps
Follow the steps below:
Step 1\ Move across to the test panel, to the right.
Step 2\ Add/paste a payload that can be used to test your script - for example:

Step 3\ If your script references variables or flow variables, you can also add variables for testing:

Step 4\ Click the run button:

...the script runs against your test payload and results are displayed at the end - for example:


From here, current logs are displayed:

Step 5\ Keep testing the script until you're satisfied that it's working as required.
{% hint style="warning" %} Any time that you make a change to the script and want to test it, always save and deploy the code first. When you run a script, it always uses the last saved version. {% endhint %}
Once these tests are complete, you can:
Comments
0 comments
Please sign in to leave a comment.