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

Reportable Rest API is not Returning all Test cases

 Hello Everyone,


I have used below reportable rest API for fetching all test cases available, but it is returning only 50 testcases but total 2744 present. Kindly  guide me, how to retrieve all test cases.

Query URL:-

https://{domainName}:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/{Project UUID}/testcase?oslc_config.context={Config Context}

I have also tried the above query by adding pagination parameter(&oslc.paging=true&oslc.page=0&oslc.pageSize=512), still ,it is returning only 50 test cases. I have also tried by adding '&size=10'.Kindly help me.

Is there any Configuration to be set in Advanced properties to get more then 50 data.

Thanks and Regards,
Jyoti

0 votes


Accepted answer

Permanent link

The Reportable REST API is not an OSLC API and does not  support OSLC pagination. (Note that configuration headers are supported.)


Paging for this (Reportable REST) API is described in the documentation:

https://jazz.net/wiki/bin/view/Main/RqmApi - see section Feeds . Click on the link ATOM paging specification and read the document. As described you get first, last, previous, next URLs that you can use to get the next  or other page. Mind the character conversion mentioned in the section.

It does not document pagination parameters as far as I can tell. The page size is defined in the Advanced Properties  (see the related section in the document next after the feed section). Default is 50. Max 512 and this works, I just tested it by setting it to 5. This also revealed the next page links as explained above.

Ralph Schoon selected this answer as the correct answer

0 votes

Comments

Hello Ralph,


Thank you for information .I am also able to get test cases till 512,as it is max, after changing 'Max Feed entries per page'    in Advanced property of QM, but next page is still returning same data. Pagination  is not working as expected. Next  page URL ,will contain '&page={Number starting from 0}',but after incrementing this page parameter value, still returning same data.

Pagination Query:-

Kindly guide me, how to retrieve all testcases.

Thanks and Regards,
Jyoti

 Thank you so much. It is working fine. 

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

Question asked: May 30 '22, 9:12 a.m.

Question was seen: 625 times

Last updated: Jun 02 '22, 5:16 a.m.

Confirmation Cancel Confirm