It's all about the answers!

Ask a question

RQM API REST calls against saved queries


Corey Jacobs (641935) | asked Aug 14 '14, 5:09 p.m.
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?

One answer



permanent link
Paul Slauenwhite (8.3k12) | answered Aug 15 '14, 7:17 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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).

Comments
Kellen Bombardier commented Aug 15 '14, 8:36 a.m. | edited Aug 15 '14, 9:50 a.m.

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


Paul Slauenwhite commented Aug 15 '14, 9:02 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.


Kellen Bombardier commented Aug 15 '14, 9:07 a.m.

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? 


Paul Slauenwhite commented Aug 15 '14, 9:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.


Kellen Bombardier commented Aug 15 '14, 9:41 a.m.

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?


Paul Slauenwhite commented Aug 15 '14, 11:01 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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 to post your answer.