-->

Possible to add JUnit 'Failed' Test Images

2019-09-14 07:41发布

问题:

Possible to add JUnit Failed Test Images to TFS?

  1. My TFS Dashboard executes my webdriver test suites
  2. Once all tests have executed within the test suite batches the TFS will then read the outputted JUnit results
  3. When there is a test failure the TFS dashboard will highlight the failed test as illustrated within the image below.
  4. Does anyone know how i can bind 'failed' images to the JUnit report and in turn link the image to a test which fails?

Thanks for your help

回答1:

There isn't any way to achieve this feature by default. You have to add a PowerShell task or create your own build task to upload the image to the related test result by calling VSTS Rest API.