ADO API for 'Add test cases to a suite with specified configurations' throws count value 0 with value []

Kumaraguru Nandakumar 20 Reputation points
2024-06-05T19:55:06.6166667+00:00

We're trying to automate adding the test case to a suite but always returns 200 OK without the count or value. The values being passed are valid.

POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Plans/2781987/Suites/3681479/TestCase?api-version=7.2-preview.3

returns '200 OK'

{

"count": 0,

"value": []

} This is the payload :

"value": []
}

This is the payload :  
  
[
  {
"pointAssignments": [
  {
"configurationId": 1539657
 }
],
"workItem": 3931624
}
]
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,796 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,016 Reputation points
    2024-06-10T05:54:04.62+00:00

    Hi @Kumaraguru Nandakumar

    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 additional answers

Sort by: Most helpful