It's all about the answers!

Ask a question

How to retrieve all testcases data using REST API.

Paraschivoiu Alexandru (11) | asked Apr 17, 4:10 a.m.

Hello there, I currently use this API URL :

GET https:/*testplan/@href=%27])

With this url I can only get one testcase data, which I don't really know from where it is getting it, because I tried to access all the testcases and only shows one, I think I should select the stream of the projectArea or component of it but I didn't found anything helpful on the web.

Can you help me to achieve getting all the testcases data from my projectArea and for a specific stream/component?

One answer

permanent link
Ralph Schoon (63.2k33646) | answered Apr 17, 4:40 a.m.
edited Apr 17, 4:44 a.m.

This is the API documentation:

There are various APIs for ETM, especially the OSLC and the Reportable REST API which you are using.

Please consider reading that API documentation. I know that the documentation lacks a lot of examples. Here is a link to a place you might want to look at:

I am not sure if you can ever get "All" items. This would overwhelm the server and the client. Usually any request is paged at best. See which is for EWM, but the posts around this one show the paging mechanisms as well as some other important concepts. 

You would likely have to find the project areas first, then query the project areas items of the type you want, then query any item you want from the result list.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.