Forum Discussion

EbyThomas's avatar
EbyThomas
Copper Contributor
Aug 30, 2022

Test Result count on Azure DevOps

Hello,

We are trying to create metrics, for the number of times a test case is executed, to validate a work item.

For all work items, we can link a test case or a test result, from the ADO Test Plan.

However, if I run a query to determine how many test results were linked to a single work item (bug/user story/task), I'm not able to find a field or column that can give me this value.

There is a field called Related Link Count, but that only gives the count of Tested By associated with the work item, not the count of Test Results inside a Work Item.

For example, if I have 5 Test Results, 2 Test Cases and 4 Tested By links attached to a Bug, my Related Link Count for this bug is 4 (count of Tested By), which isn't correct.

Please help, thanks!

4 Replies

  • Divya50's avatar
    Divya50
    Copper Contributor

    EbyThomas I am looking for same. I need to get the count or plot the graph/chart of test runs on each test case in a test suit.

    • EbyThomas's avatar
      EbyThomas
      Copper Contributor

      restihariyati Sorry, no help here yet.

      Best I got was an ADO API option, but this is way too cumbersome for daily reports from different projects and multiple paths.

      https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazure%2Fdevops%2Ftest%2Fruns%2Flist%3Fview%3Dazure-devops-rest-6.0%26tabs%3DHTTP&data=05%7C01%7CEbyJohn_Thomas%40infosys.com%7C974b84cc64234617f7b908da97049fda%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637988343362847397%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FYTvKzsKtO%2B11sKolQgDVJirQ4iWfdN2WHpzHrWL7Xg%3D&reserved=0

Resources