Retrieves the type of the active workload which the current virtual user executes.
Kernel.bdh
GetWorkloadModel( out sWorkloadType :string optional, in nCopy : number ptional ): number;
The workload model type as a numeric constant value. Possible return values are:
WORKLOAD_STEADYSTATE
WORKLOAD_INCREASING
WORKLOAD_DYNAMIC
WORKLOAD_QUEUING
WORKLOAD_MONITORING
WORKLOAD_ALLDAY
WORKLOAD_VERIFICATION
WORKLOAD_SINGLEUSER
Parameter | Description |
---|---|
sWorkloadType | Buffer to receive the workload type string. |
nCopy | Number of characters to copy to the buffer (optional, default is STRING_COMPLETE). |
dcluser user TestUser transactions TGetWorkload : 1; dcltrans transaction TGetWorkload var sWorkload: string; begin if GetWorkloadModel(sWorkload) = WORKLOAD_QUEUING then write("active workload type = "); write (sWorkload); writeln; else write("No queuing workload set.") end end TGetWorkload;
active workload type = Try Script