Find Out How

Print Friendly Version

Script

A script specifies a set of actions to be taken at a specific point in the execution of a Test Composition (via the test clip in which the script has been placed). SOASTA CloudTest Scripts are written in JavaScript.

For example, a script that modifies the input data for a message based upon a set of status codes from the previous message response.

Use Repository > Scripts to view a list of scripts already in the system and to create new scripts using the New icon on the toolbar.

The Script Editor provides an interface typical of many color-coded programming environments.

Scripts, like messages, checkpoints, browser actions, and delays, are test clip components and can be added to test clips like any other component. To view scripts to add in the Test Clip Editor, click the Scripts tab when Clip Builder is the active view.

Use double-click or drag-and-drop to add the selection to the open test clip.

For an extensive introduction to script authoring within SOASTA CloudTest, refer to the Welcome page > Downloads section > CloudTest Script Guide.

Create A New Script

  1. To create a New Script

    In SOASTA Central, navigate to Repository > Scripts.

  1. Click the New icon.

    The Script Editor appears with an untitled blank script.

  1. Enter your script code or paste the code from elsewhere if you have it.
  1. Click Save and give the script a name.

  1. In the Repository list, click Test Clips.

  1. Click New.
    The Test Clip Editor appears with an Untitled Test Clip.
  1. In the Test Clip Editor, click the Scripts tab and select your script.
  1. Double-click or drag-and-drop to add your test clip into the workspace (gray background).
    Add any other test clip components that are relevant to your test case.
  1. Save the Test Clip. Your script is now available to use in any test composition by adding the test clip that contains it.

For an extensive introduction to script authoring within SOASTA CloudTest, refer to the Welcome page > Downloads section > CloudTest Script Guide.