User`s guide

5- 20 Agilent EasyEXPERT Users Guide Vol. 1, Edition 1
Built-in Programming Tool
Script Program Statements
Script Program Statements
The program statements are used to define the test execution flow on the Test
Contents tab screen of the Test Definition window. On the screen, click the Program
Component tab. The program statements are listed in the component selection area.
See also
“Program Component” on page 3-26.
Local Variable
Definition
This statement defines the local variables used in the test definition. For the setup
editor, see
“Local Variable Definition” on page 3-24. For the available names and
variable types, see “Variables and Expressions” on page 5-3.
The local variables are effective only for this test definition.
ASSIGN This statement enters a value or expression to the variable as follows:
<variable> = <definition>
where, <variable> is the variable to define, and <definition> is the value or
expression.
BLOCK Beginning of the BLOCK/END BLOCK block. The statements are added to the
program list as a pair. The test execution flow (program) must be defined between
the statements. Optionally, the following statements can be used in this block.
ON ERROR
This statement enables an event-initiated branch performed when an error
occurs. The routine to be performed when error occurs must be defined between
ON ERROR and END BLOCK or between ON ERROR and FINALLY.
FINALLY
This statement enables an event-initiated branch performed just before
terminating the block. The routine to be performed before terminating the block
must be defined between FINALLY and END BLOCK.
The statements or components between the BLOCK and END BLOCK statements
are performed from top-down. If no error occurs during program execution, the
routine below FINALLY is executed and the block is terminated.
If an error occurs, the error code is stored in the @ERROR system variable, the
routine below ON ERROR is executed, and the block is terminated. If FINALLY is
used, the routine below FINALLY is executed before the block is terminated.