Adding other scripting languages
In addition to ECMAScript, you can customize Test Integrations and APIs to use other scripting languages. The language must provide a .jar archive that implements the Java™ Scripting API and that you can embed in the product.
For more information about the Java™ Scripting API, see the Java™ Scripting Programmer's Guide.
Note: When you use a scripting language that is not provided by Test Integrations and APIs, the
built-in functions and project custom functions are not available.
Example: Adding Groovy script to Test Integrations and APIs
For example, to add Groovy script to Test Integrations and APIs, complete
the following steps:
- From the Groovy website, download the latest stable release.
- Extract the archive file to a local directory.
- Copy the groovy-x.x.x\embeddable\groovy-all-x.x.x.jar file into the
Test Integrations and APIs
installation directory:
installation_directory/jre/lib/ext/
Note: If the Groovy download does not include an embeddable directory copy the following .jar files from the indy directory into the Test Integrations and APIs directory:groovy-x.x.x\indy\groovy-x.x.x-indy.jar
groovy-x.x.x\indy\groovy-jsr223-x.x.x-indy.jar
- Restart Test Integrations and APIs.
- Groovy is displayed as an option in the drop-down menu for the Function.
Note: An agent that runs stubs that include Groovy scripts must have
the Groovy .jar file on its classpath. If the
file is not present in the classpath, the agent throws a null pointer
exception.