Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to retrieve all testcases data using REST API.

Hello there, I currently use this API URL :


GET https:/example.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectName/testcase?fields=feed/entry/content/testcase/(*testplan/@href=%27https://example.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectName/testplan/urn:com.ibm.rqm:testplan:0%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?

0 votes



One answer

Permanent link

This is the API documentation: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding

There are various APIs for ETM, especially the OSLC and the Reportable REST API https://jazz.net/wiki/bin/view/Main/RqmApi 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: https://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/

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 https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ 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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 516
× 479

Question asked: Apr 17, 4:10 a.m.

Question was seen: 920 times

Last updated: Apr 17, 4:44 a.m.

Confirmation Cancel Confirm