Answered by:
How to get Test Cases from multiple/nested Test Suites by using Rest APIs

Question
-
I need whole Information inside Test Cases i.e Outcome, order, id, Configuration and Tester
The Structure of Test Plans, Suites and Cases within our Azure Devops is :
TestPlan
--> Test Suite1
---------------------> Test Suite
---------------------------> Test Suite
------------------------------------->Test Cases
----------------------------> Test Suite
------------------------------------->Test Cases
----------------------------> Test Suite
------------------------------------->Test Cases
----------------------------> Test Suite
----------------------------> Test Suite
------------------------------------->Test Cases
-----------------------------> Test Suite
------------------------------------->Test Cases
----------------------------->Test Suite 2
----------------------------->Test Suite 3
----------------------------->Test Suite 4
----------------------------->Test Suite 5.....and so on
As seen above we have multiple Test Suites one inside other
My requirement is I need all info inside each test case using Rest APIs
I have used Rest APIs however I don't get exact data which I need because of the above structure , the API doesn't give me Test Suites under Test Suite 1 but simply gives count as 0 because there are no test cases inside it.
Can you please help me with which API should I use to fetch test cases from Test Suite 1?- Edited by Shirin14 Tuesday, January 28, 2020 11:41 AM
- Moved by KetanChawda-MSFTMicrosoft employee Wednesday, January 29, 2020 4:02 AM
Tuesday, January 28, 2020 11:35 AM
Answers
-
Hello Shirin,
Looks like your question is related to AzureDevOps and this forum is to ask question related to Azure API Management.
If you are looking for any help related to Azure DevOps, please ask question here on this forum.
- Proposed as answer by KetanChawda-MSFTMicrosoft employee Wednesday, January 29, 2020 4:08 AM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, February 5, 2020 3:26 PM
Wednesday, January 29, 2020 4:02 AM -
I'd try asking for help over here.
https://developercommunity.visualstudio.com/spaces/21/index.html
https://stackoverflow.com/questions/tagged/azure-devops
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, January 29, 2020 9:57 AM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, February 5, 2020 3:26 PM
Wednesday, January 29, 2020 4:42 AM
All replies
-
Hello Shirin,
Looks like your question is related to AzureDevOps and this forum is to ask question related to Azure API Management.
If you are looking for any help related to Azure DevOps, please ask question here on this forum.
- Proposed as answer by KetanChawda-MSFTMicrosoft employee Wednesday, January 29, 2020 4:08 AM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, February 5, 2020 3:26 PM
Wednesday, January 29, 2020 4:02 AM -
I'd try asking for help over here.
https://developercommunity.visualstudio.com/spaces/21/index.html
https://stackoverflow.com/questions/tagged/azure-devops
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, January 29, 2020 9:57 AM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, February 5, 2020 3:26 PM
Wednesday, January 29, 2020 4:42 AM -
Thanks for correcting meWednesday, January 29, 2020 6:08 AM