Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRX Logger shouldn't fail if test result attachments are missing/Invalid #1705

Closed
nigurr opened this issue Jul 30, 2018 · 2 comments
Closed
Assignees
Labels

Comments

@nigurr
Copy link

nigurr commented 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&#xD;
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'.&#xD;
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#xD;
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)&#xD;
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)&#xD;
   at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.CopyFile(String sourceFile, String targetFile)&#xD;
   at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.ToResultFiles(AttachmentSet attachmentSet, Guid testResultExecutionId, TestRun testRun, String trxFileDirectory)&#xD;
   at Microsoft.TestPlatform.Extensions.TrxLogger.Utility.Converter.UpdateTestResultAttachments(TestResult rockSteadyTestResult, TestResult testResult, TestRun testRun, String trxFileDirectory, Boolean addAttachments)</StdErr>
@smadala
Copy link
Contributor

smadala commented Aug 6, 2018

@vagisha-nidhi Can we close this issue?

@vagisha-nidhi
Copy link
Contributor

@smadala Yes this issue has been resolved. We can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants