Scripting within tests and stubs
You can write scripts in Rational® Integration Tester by
using the Rational Integration Tester legacy
scripting language, ECMAScript (such as JavaScript), or a third-party scripting
language that you install.
You can enter a script in a number of places, such as Function,
Decision and Assert actions in tests, and Assert using Function actions
in the message editor. These scripts return a value or perform an
action (for example, a database update). When writing a script in
a Function action, the returned value can be stored in a tag. Scripts
in other locations must return a boolean value (true or false), which
affects the running or validation of a test. The custom functions you
add to a Rational Integration Tester project are available while using
the legacy scripts or ECMAScript.
Note:
- When you use a scripting language other than legacy, the language's own functions and data types are also available.
- When you use a scripting language that is not provided by Rational Integration Tester, the built-in functions and project custom functions are not available.
Rational Integration Tester provides
a number of opportunities for dynamic user interaction, including:
- Function actions
- Guard conditions in a message-based stub
- Message cases in Message Switch actions
- Expressions for Assert, Decision, or Iterate While actions
The following topics and sections discuss various aspects of these
scripting languages: