GetRuntimes Function

Action

Retrieves the number of virtual users scheduled for the load test. The number is not decreased when a virtual user is stopped or finished.

Include files

Kernel.bdh

Syntax

GetRuntimes(): number;

Return value

The number of virutal users scheduled for the load test.

Example

dcluser
  user
    TestUser
  transactions
    TMain : 1;
  dcltrans
  transaction TMain
  var
    nRuntimes: number;
  begin
    nRuntimes := GetRuntimes();
    write("number of simulators started: ");
    write(nRuntimes); writeln;
  end TMain;