Sevenate
Sevenate

Reputation: 6465

Export tests results from Azure DevOps

I might be missing something, but can't find a way to export tests run results from the project's build pipeline execution page in Azure DevOps.

Azure DevOps - Test Results page

There is a "Download logs" option, of cause, where you technically can find logs from tests execution step as well among other things, but that doesn't seems to be the best/proper way to get that kind of data on a regular basis for regulations/audit/documentation purpose compared to how it is possible to get test results from other build systems right out-of-the-box (TeamCity/Jenkins etc).

So what would be the best approach to get this kind of data out of the system - custom task or else?

Upvotes: 14

Views: 36977

Answers (3)

Notarobot
Notarobot

Reputation: 96

There is a simpler way to download the test results in trx format if you do not have Test Plans.

  1. Go to the Tests tab from your build pipeline run.
  2. Select your Test Run from the bottom pane (top level row for your run). Click on it and then a dialog should open on your right with options like Debug, Attachments, etc.
  3. Click on the Attachments tab and you will find your trx file here.

trx file can be opened in Visual Studio and then results can be copy and pasted in excel if need be.

enter image description here

Upvotes: 8

David Peicho
David Peicho

Reputation: 492

I found that today, it will actually work. Even if you don't have test plans or anything, published tests artifacts will go into Tests Plan -> Runs.

Azure DevOps left nav panel - Test Plans - Runs

Then you will be able to click on Tests Runs, select the run you want to download, and simply download the attachment.

Upvotes: 7

Hugh Lin
Hugh Lin

Reputation: 19361

You can export test plans, test suites, and test cases from Test Plans. Select the details that you want in the report. Then email or print this report for review.

enter image description here enter image description here

Upvotes: 2

Related Questions