- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
|
SOASTA CloudTest scripts are written in JavaScript and a working knowledge of JavaScript programming is required to effectively use them. |
|
|
JavaScript Support
Scripts can be positioned within Test Clips just like messages and browser actions, and incorporated into Test Compositions one or many times. All test clips, including any Scripts they contain, are reusable. The complete Script API reference is accessible from within CloudTest’s Script Editor.Toolbar as well as from the CloudTest Welcome page, Downloads and Samples section. For step-by-step instructions on how to add your script to a test clip and test composition, see Script. |
![]() |
Regular Expression Support in CloudTestRegular expressions within CloudTest's user interface (e.g. Session Templates, Include/Exclude of Page Resources, and Property Sets within the Message Editor in the Clip Editor lower panel) are Java expressions. Regular expressions within a script (via the RegExp object or the /pattern/ notation) are JavaScript regular expressions. These regular expression versions differ in important ways (JavaScript’s has less features than Java). The two are not interchangeable, so expressions cannot be copied from a script to an include/exclude for pages, to a session template, or to a PropSet or vice versa. Java regular Expressions can be built by selection of strings before and after the string to parse within CloudTest session templates via the SubString Parser of the Session Template Package Wizard. Refer to Creating a Regular Expression Using the SubString Parser. Refer to the Mozilla Regular Expression documentation for more information about regular expressions in JavaScript. Refer to the java.util.regex documentation for details about regular expressions in Java. |

