Open System Testing Architecture

TOC PREV NEXT INDEX



SYNCHRONIZE REQUESTS Command

Description:

HTTP requests are issued asynchronously. Immediately after an HTTP request has been issued, the next command in the script is processed. OpenSTA does not wait for a response to be received for an HTTP request.

This command causes the thread currently executing to be suspended immediately, until responses have been received for all the requests that have been issued by the thread. It is only valid within a script that has been defined as MODE HTTP.

The `ON TIMEOUT GOTO tmo_label' clause can be specified to define the label to which control will be transferred if the request times out.

Format:
 [SYNCHRONIZE | SYNCHRONISE] REQUESTS {&}
 {, WITH TIMEOUT period {, ON TIMEOUT GOTO tmo_label}}
Parameters
period

An integer variable, integer value or integer expression defining the number of seconds to wait before the command is timed out. The valid range is 0 - 32767.

tmo_label

A label defined within the current scope of the script, to which control branches if a time-out occurs.

Examples:
 SYNCHRONIZE REQUESTS
 SYNCHRONISE REQUESTS &
 , WITH TIMEOUT 60, ON TIMEOUT GOTO timed_out

See also:

Synchronization Commands


OpenSTA.org
Mailing Lists
Further enquiries
Documentation feedback
CYRANO.com
TOC PREV NEXT INDEX