WAITTIL

System Testing Test Script Language.

Syntax

WAITTIL (<passed_expr>, <failed_ expr>)

Description

This instruction waits for several events and/or a timer.

<passed_expr> is a parameter that contains a Boolean expression. If this expression is true, the waiting process is disabled and the test sequence continues.

<failed_ expr> is a parameter that contains a Boolean expression. If this expression is true, the waiting process is disabled and it ends with an error.

The expressions <passed_expr> and <failed_expr> can only use global variables.

When <failed_ expr> is true, the execution of the scenario containing the WAITTIL is interrupted. The next scenario at the same level is then executed.

To use this instruction, you need to take the following actions:

Example

The following lines are from the Basestation sample application delivered with the product.

#int tt; /* global var */

PROC con (int timeout)

VAR tt, INIT=timeout;

  DEF_MESSAGE mResponse, EV={command=>cmd_connection_established}          

  WAITTIL ( MATCHING(mResponse,BaseStation), WTIME>tt )                                                                               

END PROC       

Related Topics

ADD_IDMATCHED( ) | MATCHING( )NOTMATCHED( )NOTMATCHING( )WTIME