Script Prerequisites

CloudTest scripts are written in JavaScript, so you need a working knowledge of JavaScript programming in order to use them effectively.

JavaScript Support

CloudTest uses Mozilla’s Rhino embeddable JavaScript language. Since JavaScript is a general language many things not supported declaratively by CloudTest are possible via Scripts. Via its scripting support, CloudTest’s design also includes the ability to access the underlying message complexity both by the Message Editor and by extension using JavaScript objects. User created test scenarios can be further enhanced by the use of scripts. CloudTest provides a simple scripting environment to use JavaScript to traverse and modify the CloudTest Object

Model.

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. Click Script API on the Script Editor toolbar to launch this important documentation resource.



For step-by-step instructions on how to add your script to a test clip and test composition, see Script.