GetWorkload Function

Action

Retrieves the name of the active workload which the current virtual user executes.

Include file

Kernel.bdh

Syntax

GetWorkload(): string;

Return value

The name of the workload.

Example

dcluser
  user
    TestUser
  transactions
    TGetWorkload : 1;
dcltrans
  transaction TGetWorkload
  var
    sWorkload: string;
  begin
    sWorkload := GetWorkload();
    write("active workload = "); write(sWorkload); writeln;
  end TGetWorkload;

Output

active workload = LoadTest