public void DeleteTestOutput(TestRunDto testRun, TestOutputDto testOutput) { var testOutputFullPath = _locationsProvider.GetTestOutputFullPath(testRun.TestInfo.Guid, testRun.TestInfo.Finish); _logger.Debug($"Deleting Test Output: {testOutputFullPath}"); File.Delete(testOutputFullPath); }
public TestOutputDto GetTestOutput(TestRunDto test) { TestOutputDto testOutput = null; if (test != null) { var fullPath = _locationsProvider.GetTestOutputFullPath(test.TestInfo.Guid, test.TestInfo.Finish); if (File.Exists(fullPath)) { testOutput = fullPath.LoadTestOutput(); } } return(testOutput); }