Returns the output directory name specified on starting the load test.
If the test runs on the local machine, this info could be extracted from the result of GetDirectory(DIRECTORY_RESULT). On an agent machine, however, GetDirectory(DIRECTORY_RESULT) returns a local directory on the agent machine.
Kernel.bdh
GetLoadtestName( out sName     : string,
                 in  nNameSize : number optional );
               	 | Parameter | Description | 
|---|---|
| sName | String receiving the load test name. | 
| nNameSize | Number of characters to copy into sDir (optional, default is STRING_COMPLETE). | 
dcltrans
  transaction TMain
  var
    sName: string;
  begin
    GetLoadtestName(sName);
    writeln(sName),
  end TMain;