Closed
Description
openedon Jul 30, 2018
In case of invalid test result path/attachment, currently TRX logger fails to write testresult outcome
causing test results to be reported in Invalid state.
<StdErr>Failed to attach files from: MSTestAdapterV2
Error Details: System.IO.DirectoryNotFoundException:System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\agent_work\1\s\TestResults\Deploy_wpsetwtt 2018-07-25 21_58_17\In\GetTokenInfoByInvalidCode_LogFile.txt'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.CopyFile(String sourceFile, String targetFile)
at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.ToResultFiles(AttachmentSet attachmentSet, Guid testResultExecutionId, TestRun testRun, String trxFileDirectory)
at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.UpdateTestResultAttachments(TestResult rockSteadyTestResult, TestResult testResult, TestRun testRun, String trxFileDirectory, Boolean addAttachments)</StdErr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment