Solution
The file path for the current TestStand report is created at run-time and is saved as a variable. Where this variable is located depends on the version of TestStand being used:
TestStand 2012 and Later:
The report file path is most easily accessed through the
GetReportFilePath callback.
This callback stores the report file path in the parameter
Parameters.ReportFilePath.
With the file path, we can utilise the
Split function to find the filename.
TestStand 2010 SP1 and Previous:
The specific variable to which the report file path is saved is dependent on the specific process model you are using. With the file path, we can utilise the
Split function to find the filename.
Sequential Model:
RunState.Root.Locals.ReportFilePath
Batch and Parallel Models:
RunState.Root.Parameters.TestSocket.ReportFilePath