Waits for a number of users that call this function. It only synchronizes virtual users on one agent.
Kernel.bdh
WaitFor( in sName : string,
in nCount : number optional,
in nTimeout : number optional ): boolean;
true if successful
false otherwise
| Parameter | Description |
|---|---|
| sName | Name of the synchronization point |
| nCount | Number of users to wait for (optional). If this parameter is omitted, the function waits for all simulated users |
| nTimeout | Timeout of wait period in seconds (optional). If this parameter is omitted, the functions does not report a timeout |
dcltrans
transaction TMain
const
WAITFOR_TIME_OUT := 10;
begin
...
// waits for 5 users rendezvousing at this point in the script
if not WaitFor("Rendezvous", 5, WAITFOR_TIME_OUT) then
write("time out\n"); halt;
end;
...
end TMain;
Trans.bdf