4.0 XPOZ Scripting Language

The XPOZ scripting language is comparable to the C language, although not exactly equivalent to it. XPOZ scripts contain the calls to XPOZ test functions. There are three elements found in the XPOZ scripts: variable declarations and assignments, flow control constructs, and test function calls.

Script files can call other script files. Upon completion of a script file, execution passes back to the calling script file, if one exists. Otherwise, the test terminates.

Variable scope is defined to be at the script and block level. All variables declared inside a curly brace block are thrown away upon the exit of the block. Any variables defined at the script level are thrown away when the script file exits. Specifically, this means that a variable x defined in script1 is visible during execution of script1 along with all other script files that script1 calls. Variable x goes out of scope (effectively is removed from the symbol table) when script1 completes. It is permissible to redefine variable x at a subordinate level (that is, in script2, which is invoked by script1). In this case, during the scope of script2, the local variable x is used instead of the variable defined in script1. Within a given script, a variable name can be defined only once.