Testing scripts

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:

For more detailed information about a script test, you can get logs:

...current logs are displayed:

Step 5 Keep testing the script until you're satisfied that it's working as required.

Once these tests are complete, you can:

Last updated