Skip to main content
Skip table of contents

Int4 Test Execution runtime variables

Within Int4, ASTER runtime starts with additional variables predefined, representing the details of script execution context.

These variables are not constants! So they can be UNSET or their values can be changed within the program. If that will be the case, the program could stop making sense!

Name

Value

Comments

_DESIGN_MODE_

_TRUE_ if script is running in the editor

_FALSE_ when the script runs during test execution

Indicates that the script is executed directly from the editor.

It allows implementation of specific logic e.g. initialization of variables available only during Int4 Suite Test Run execution.

Example:

CODE
PO = IF(_DESIGN_MODE_, 
          "AFT_S4_123",
          GET_TC_VAR("PO")[1]["NEWVAR"]);
          
PAYLOAD = IF(_DESIGN_MODE_,
            GET_TC_OUTPUTS()[1],
            GET_CONTEXT_PAYLOAD());

_VARIABLE_NAME_

In case the script is executed in the context of Variable Processor - for ASTER type variables - this contains the name of the Variable in the context of which the script was executed.

Thanks to this information, a script could be used for multiple uses cases, supporting processing for many different variables by re-using a single ASTER script.

Usage example:

CODE
GET_TC_VAR(_VARIABLE_NAME_)["VAR"]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.