TERMINATION ... END TERMINATION

System Testing Test Script Language.

Syntax

TERMINATION [ <proc>( [<type identifier>]{ , type identifier } ) ]

END TERMINATION

Description

The TERMINATION instruction deletes a specific environment by executing a set of instructions or the procedure <proc>. END TERMINATION marks the end of the TERMINATION block.

A TERMINATION block or instruction applies to the set of scenarios on its level. It does not apply to sub-scenarios.

The TERMINATION instruction or block is optional. A maximum of one TERMINATION block or instruction may occur at a given scenario level. The TERMINATION instruction is only executed when a scenario terminates without errors.

You may place a TERMINATION instruction anywhere among scenarios at the same level.

Example

#int sock;

TERMINATION   

   ...

   CALL close (sock)   

   ...

END TERMINATION

...

SCENARIO Main   

   ...

END SCENARIO

Related Topics

INITIALIZATIONEXCEPTION