Rendezvous Functionality

This function is used to create a delay until the specified virtual users reach a certain state, and then to proceed with all the users simultaneously. This tests the ability of the system to handle a number of concurrent transactions by making it possible to generate very specific stress on the system. For example, in a transaction that stores a number of files on an FTP server, you may want your script to wait until all the users are logged on, and then to store all the files at the same time.

Rendezvous Functions

Silk Performer includes the following rendezvous function:

  • WaitFor

Rendezvous Sample Script

In this example, the script waits until five virtual users (Buyer) are at the line in the script containing the WaitFor function, and it then proceeds with the transaction.

const
  USERS := 5;
dcluser
  user
    Buyer
  transactions
    TBuy : 10;

dcltrans
  transaction TBuy
  const
    TIMEOUT := 60;
  begin
    // wait for users rendezvousing at this point
    if not WaitFor("Rendezvous", USERS, TIMEOUT) then
      write("timeout"); halt;
    end;
    // proceed with transaction
    print("rendezvous", 1, TEXT_RED);
  end TBuy;