Action
Retrieves the number of the
load test generated for the current simulation. All results in the repository of the current
load test are associated with this ID number.
注: This function only returns a valid number if the
Silk Performer repository (deprecated) is installed, otherwise it returns
0, since the ID number of a
load test is repository-specific. To retrieve a list of the
load test names however, you can use the
GetDirectory function with the
DIRECTORY_RESULT parameter.
This function only returns meaningful results when used on the controller machine.
Syntax
GetLoadtest() : number;
Return value
The ID number of the
load test.
Example
dcltrans
transaction TGetLoadtest
var
nLoadtest : number;
begin
nLoadtest := GetLoadtest();
write("load test = "); write(nLoadtest); writeln;
end TGetLoadtest;