SET

System Testing Supervisor Script Language.

Purpose

The SET instruction sets an environment variable on either the System Testing Supervisor machine or the target machine.

Syntax

SET [ <hostname>: ] <env_var> << <expression>

SET [ <hostname>: ] <env_var> = <string>

<hostname> is the logical name of the target machine,

<env_var> is the name of the environment variable,

<expression> is a numerical expression,

<string> is a text string.

Description

<hostname> must be previously declared with a HOST instruction. If you do not specify a hostname, the SET instruction sets a local environment variable on the supervisor machine.

The environment variable is set when the SET instruction executes. It keeps its value until the end of the execution, or until it resets.

The string from the equal sign (=) to the end of the line belongs to the expression.

To evaluate an expression and assign it to the variable, use the << symbol. The expression may contain variables.

Example

HOST target IS workstation(10098)

...

SET LOCAL_TMP_DIR=/tmp

SET target:REMOTE_TMP_DIR << $TMPDIR

SET target:NUMVALUE <<i+2

Related Topics

UNSET