public static void SetRecordingDataFromFile(string sourcePath) { AQALogger logger = new AQALogger(); RecordedPlaybackPersistentData.CleanRecordingData(); string destPath = Path.Combine(AutomatedQARuntimeSettings.PersistentDataPath, kRecordedPlaybackFilename); if (!string.IsNullOrEmpty(sourcePath)) { CopyRecordingFile(sourcePath, destPath); } else { logger.LogError($"Failed to copy recording file from {sourcePath} to {destPath}"); } }
public static void SetRecordingData(string rawData) { RecordedPlaybackPersistentData.CleanRecordingData(); File.WriteAllText(GetRecordingDataFilePath(), rawData); }