[Azure DevOps Services REST API 6.0][Runs - Update] - Payload structure to update test steps of an test case

Vittal Govinda, Amith Kumar 0 Reputation points
2024-05-11T10:37:36.41+00:00

Hi All,

I'm trying to update test steps of an test case. However with the below payload I'm able to update the test case but not the test steps. Can any one suggest the way to update the tests steps of an test case using api.Below is the payload format used to update the steps.

PATCH https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/runs/{runId}?api-version=7.1-preview.1

[
{
    "id":100001,
    "outcome":"Passed",
    "state":"Completed",
    "IterationDetails":[{
        "id": 1,
        "outcome":"Passed",
        "actionResults":[
            {
                "actionPath":"00000002",
                "actionId": 2,
                "iterationId":1,
                "stepIdentifier": "2",
                "outcome": "Passed",
                "state":"Completed",
                "isSubStep":false
        
            }
        ]
    }
        

    ]
}

]
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,526 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,581 Reputation points
    2024-05-13T07:47:13.48+00:00

    Hi @Vittal Govinda, Amith Kumar

    Welcome to Microsoft Q&A! Thanks for posting the question.

    DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask the experts in the dedicated forum over here:

    https://stackoverflow.com/questions/tagged/devops

    https://developercommunity.visualstudio.com/spaces/21/index.html

    Please 'Accept Answer' if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments