Skip to main content
Skip table of contents

Test scripts

If you need to test some javascript outside of your cycle, you can do so with the Script Testing Tool.

In your console, go to Connectors > Script Testing.

You should start with an example object (XML/JSON etc) to run your tests on.

This might be a request from a method you wish to call, or the response from said call.

Using the Script Testing Tool

  1. Click Global and paste in the object, ensuring you assign the correct datatype, and give it a useful name.

Global Object Setup.
  1. Use the left pane to enter your javascript function(s), and in the text box above, call the method (no brackets required).

  2. Click the green Run button, and if your javascript is valid, you will see its output in the right-hand pane.

  3. You can now continue to adjust your script until you’re happy with the output, pressing Run whenever you wish to update the output.

Example Script Test

For more on scripting, see Connector Scripting

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.