Navigation: Realtest Script Language > Syntax Element Details > Include

Category

Description

Allows a script to include another script

Syntax

Include: path where path is either a full file path (e.g. C:\Program Files\RealTest\Scripts\Examples\script.rts) or a path relative to the Scripts folder (e.g. Examples\script.rts).

Notes

A script can include any number of other scripts by using multiple include statements.

Included scripts can include other scripts, and so on (it's recursive).

RealTest ensures that each specific script is included only once.

The combined scripts is parsed as one large script, so each item name (Data items, Parameters, etc.) must be unique across the combined scripts.

Suggested names n the script editor (auto-complete) will include any names defined in included scripts.