Issue: SubResults Not Displayed in Azure DevOps UI

Silas2004 0 Reputation points
2025-03-10T09:08:33.47+00:00

I create a test run and specify properties such as time, state, and outcome. At the end, I add the pointIds, which automatically include the associated test cases in the run.

Afterward, I update the results via a PATCH request, including additional properties like subResults. However, the subResults (steps) do not appear in the Azure DevOps UI, even though they are successfully stored and retrievable via the API.

How I Upload the Data (Result ID: 100000)

[
  {
    "id": 100000,
    "outcome": "Passed",
    "state": "Completed",
    "errorMessage": "",
    "durationInMs": 1000,
    "subResults": [
      {
        "id": 1,
        "parentId": 3,
        "outcome": "Passed",
        "comment": ""
      },
      {
        "id": 2,
        "parentId": 3,
        "outcome": "Passed",
        "comment": ""
      }
    ]
  }
]

API Query to Retrieve the Data

GET https://dev.azure.com/organization/project/_apis/test/Runs/173/results/100000?api-version=7.1-preview&detailsToInclude=SubResults

Parts of the Response: "subResults":

"subResults": [
  {
    "id": 1,
    "outcome": "Passed",
    "comment": ""
  },
  {
    "id": 2,
    "outcome": "Passed",
    "comment": ""
  }
]

Question:
If the subResults are successfully stored and retrieved via the API, why are they not displayed in the Azure DevOps UI? Is there a specific setting or format required to make them visible?

Azure DevOps
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.