FORMATTED_LOG_FILE_PATH

FORMATTED_LOG_FILE_PATH is a read-only built-in string containing the path of the formatted log file. The formatted log file is only written after all tests have finished, so FORMATTED_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 formatted log file from ", FORMATTED_LOG_FILE_PATH, " to ", LogFileDest, "\n");
  SYSTEM("copy /y \"" + FORMATTED_LOG_FILE_PATH + "\" \"" + LogFileDest + "\"")(result);
END;