wait()

Set a delay between test instructions.

Syntax

wait(
  mseconds  INTEGER )
  1. mseconds is an integer value specifying a number of milliseconds.

Usage

Call this method to set a wait between actions executing in a test scenario. Setting a delay causes the GGC to wait the specified number of milliseconds before executing the next instruction.

When you call the wait() method, the GGC takes care of keeping the session alive by sending appropriate ping events. For example, it avoids session timeouts that may result from a USER_AGENT timeout. The call to the wait method in the sample command, sets a delay of 100 milliseconds before the GGC calls the next test instruction.

CALL ggc.wait(100)
Note:

The delay may be overwritten by the speed-ratio setting in the ggcadmin command starting the BDL scenario server.

It is not recommended to use the Genero BDL SLEEP function in testing.