コード例 #1
0
        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}");
            }
        }
コード例 #2
0
 public static void SetRecordingData(string rawData)
 {
     RecordedPlaybackPersistentData.CleanRecordingData();
     File.WriteAllText(GetRecordingDataFilePath(), rawData);
 }