Testing scripts
Last updated
Last updated
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.
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:
Step 5 Keep testing the script until you're satisfied that it's working as required.
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.
Once these tests are complete, you can:
...current logs are displayed: