azure-pipelines-tasks: Upload Test Attachments don't load files from jUnit format

I have step “Publish Test Results” with “Test Result Format” - jUnit with checked checkbox “Upload Test Attachments” .

And jUnit report with “system-out” node as discribed in documentation jUnit Attachment. <testsuites> <testsuite name="Test suit" timestamp="2016-07-10" hostname="localhost" time="116.509" errors="0" tests="40" skipped="0" disabled="0" failures="0"> <testcase classname="suit" name="name" time="0.649"> <system-out> [[ATTACHMENT|./.tmp/protractor/somepage.png]] </system-out> </testcase> </testsuite> </testsuites>

But as result in Attachment no one file uploaded.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 19 (2 by maintainers)

Most upvoted comments

@brahimiarlinda we ended up writing small C# utility that traverses the screenshots and uploads the files via the devops api to the appropriate test run, and have it run after the publish of test results

@bazted : https://github.com/aviatrix/AzureDevopsTestImageAttacher Be sure to put it in static (http) location and download and execute it right after test step, and pass env variables or hardcode them

¯\(ツ)

Just a note to others here, if you want to get artifacts into your nodejs tests, you can use the feature branch for https://github.com/bmancini55/node-trx/pull/5 and just update the associated trx exporter to specify the generated files.

No idea when that PR will be approved, but hope this helps while we wait for junit support.