RQM REST - How to get more than 50 items in response?
We are creating a GET request for RQM using the following URL:
This returns a set of Executionworkitems for the project "PROJECTNAME" and testplan "TESTIDENTIFIER".
Unfortunately the returned XML only contains 50 ExecutionWorkitems as a maximum.
Thanks in advance for your answer. |
6 answers
Stefan,
Take a quick look at the RQM API Reference:
https://jazz.net/wiki/bin/view/Main/RqmApi
Specifically under the Feeds heading:
Resources can be read (GET) individually (see <resourceUrl>) or as a feed of similar typed resources (see <feedUrl>).
The size of the feed page is variable. When a feed spans multiple pages, a link to the next page is provided in the current page (see ATOM paging specification). By default, the feed page size is set to 50 resources, but it can be modified to a maximum of 1000 resources. To set the feed page size, set the following RQM Integration Component (
?token=_C8DasVZWEeG429XX9GztHA%26page=1
where the &'s are escaped (e.g. %26). To use the link the &'s must be unescaped by turning all instances of "%26" to "&". That would make the query segment look something like:
?token=_C8DasVZWEeG429XX9GztHA&page=1
Comments
Samanwita Majumdar
commented Apr 30 '13, 8:24 a.m.
I have a similar problem, trying to get RQM test cases and the system has more than 50 however my query returns back only 50. I am using the following query - https://host:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project area/testcase. how can this query be parameterised so that I get all of the testcases in the system. Can there be the list of steps that need to be followed?
2
If you go to https://<PublicURI>/qm/admin -> Advanced properties
You can modify the Max Feed Entry (as noted in the RQM API reference)
Paul Slauenwhite
commented May 01 '13, 6:09 a.m.
| edited May 01 '13, 6:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
|
I'm at a loss trying to understand how providing the link https://jazz.net/wiki/bin/view/Main/RqmApi#Feeds solves this answer? How does one actually make the change? If you are not an admin, only having a RESTful request, what does one need to include in the REST get / post such that they can change the max entries per page? The references provided seem to give no clue / indication to this, Is "com.ibm.rqm.integration.service.internal.IntegrationService" appended to the URL in some manner? Is "Max Feed Entries/Page" appended to the URL in some manner? Is there an example that actually shows this in the Rest URL so I know how it's syntax? I just can't figure out what to do with these two parameters in a RESTful request. Comments Hi Glenn,
Hi Paul,
Hi Glenn,
|
Hi Ara,
If the project contains more than 1000 artifacts (test scripts) then how to export next set after exporting first 1000 artifacts? i have refererred your explanation above "By default, the feed page size is set to 50 resources, but it can be modified to a maximum of 1000 resources."
Thanks, Anitha |
We are stuck here.
We have more than 1500 testcases in our project area.
How can we use the RQM API to fetch Testcases more than 512 (the upper limit for feed fetch is 512)?
|
Thanks Stefan, I was able to get all pages polling the rel=next attribute of the link tag. |
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.