LOG_FILE_PATH

LOG_FILE_PATH is a read-only built-in string containing the path of the plain text log file. The plain text log file is only written after all tests have finished, so LOG_FILE_PATH only contains a valid path when running the post-testing function with the option enabled to run that function after the log file has been written. In all other circumstances it will be set to the string "UNAVAILABLE".

Example

CONST STRING LogFileDest := "\\\\server\\share\\logs";

PostTesting(INT stopMode, INT failureCount)()
  INT result;

  // Copy log file to server share
  PRINT("Copying plain text log file from ", LOG_FILE_PATH, " to ", LogFileDest, "\n");
  SYSTEM("copy /y \"" + LOG_FILE_PATH + "\" \"" + LogFileDest + "\"")(result);
END;