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

RQM API REST calls against saved queries

I'm using RQM 4.0.4.  I wanted to use REST API GET calls against test case results to retrieve their information.  There's approximately 1500 in our current RQM project, with many more to be generated.  The max allowed tor retrieval in RQM is capped at 1000.  I was looking to do REST calls against a couple of saved queries for these test case results.  Anyway to do this with REST GET calls against saved queries?

0 votes



One answer

Permanent link
Hi Corey,

Unfortunately, no.  However, you can use fields filtering/selection (see https://jazz.net/wiki/bin/view/Main/RqmApi#fields) to prune your response.  Note, responses are paged with a max page size of 512 (see https://jazz.net/wiki/bin/view/Main/RqmApi#Advanced_Properties).

0 votes

Comments

Paul - How can a REST call to RQM return results that are greater than 1000 entries if the maxed cap size is 1000?

Hi Kellen,

In theory the RQM Reportable REST API should not return responses with more than the 'Max Feed Entries/Page' Advanced Property (see https://jazz.net/wiki/bin/view/Main/RqmApi#Advanced_Properties).  If so, please open a RQM defect.

Thanks for the response Paul. I have a follow up question. We commonly have thousands of execution results and want to do some reporting on those. What is the recommended way to do that if the REST calls do not allow over 1000 entries to be returned? 

Hi Kellen,

I would suggest using fields filtering/selection (see https://jazz.net/wiki/bin/view/Main/RqmApi#fields) to prune your response as much as possible.  Reporting will handling paging through the response pages.

Therefore, we would not be able to view all the execution results if we want to list all execution results for a test plan which has over 1000 results. Is this correct?

No.  You can GET the executionresult feed for a particular testplan but will have to page through the response.

For example:

GET https://<host>:<port>/<context root>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area alias>/executionresult?fields=feed/entry/content/executionresult/(testplan[@href='<test plan resource URL>']|*)

showing 5 of 6 show 1 more comments

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
× 12,023
× 480

Question asked: Aug 14 '14, 5:09 p.m.

Question was seen: 4,297 times

Last updated: Aug 15 '14, 11:01 a.m.

Confirmation Cancel Confirm