Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium screenshots in VSTS (Azure DevOps)

According to my searches, it should "just work". This is the best article I found. I've followed the steps, but nowhere in the VSTS (Azure DevOps) interface does it indicate there are any screenshots attached.

I am running this on a privately hosted build server and I have verified the following:

  1. Screenshots are being created and saved to disk
  2. The resulting TRX file (I'm using MSTEST framework) does have a ResultFile reference (a path to the image file)
  3. The TRX file is uploaded to VSTS and I can download it and see that the ResultFile is still in the TRX.

I'm not sure what I am missing in order to get this to work. Any help would be appreciated.

like image 235
Brian Ball Avatar asked Oct 15 '18 19:10

Brian Ball


1 Answers

This is a known issue and Microsoft says it is fixed but pending release in a future update: Azure DevOps build test results missing attachments from tests

The work-around in the response notes says to use the option to Rerun failed tests.

like image 55
Ryan Riehle Avatar answered Oct 21 '22 00:10

Ryan Riehle