GetRandomTransactions Function

Action

Retrieves the current setting that determines whether the simulation engine has to perform all transactions defined in the workload section of the load testing script in random or sequential order.

Include file

Kernel.bdh

Syntax

GetRandomTransactions(): boolean;

Return value

  • true if the simulation engine currently performs all transactions defined in the workload section of the load testing script in random order

  • false otherwise

Example

dcltrans
  transaction TMain
  begin
    write ("transaction order: ");
    if GetRandomTransactions() then
      writeln("random")
    else
      writeln("sequential")
  end;
end TMain;