It's all about the answers!

Ask a question

Unable to retrieve next page contents using RQMUrlUtility


Ravish Udupa (11) | asked Jan 11 '23, 10:14 p.m.

 Using Rational Quality Manager 6.0.6.1 and RQM Url Utility trying to access Test case within Test Suite with the help of RESTful APIs. After the GET request able to retrieve XML containing first 50 elements along with links to next page and last page. Using the Href link to Next page does not return the contents of next 50 elements instead just the feed containing link to self, previous, next and last pages. Need help in understanding why contents are not provided when accessing next page contents. I read in other threads one option is to increase max elements per page from 50 to higher number but that is not possible due to certain limitations so i am looking for alternate solutions


Comments
Ralph Schoon commented Jan 12 '23, 9:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There are various REST APIs. How does your URL look like? 

3 answers



permanent link
Ravish Udupa (11) | answered Jan 20 '23, 3:56 p.m.

 @Ralph Schoon, I could not figure out the cause for this issue. I am trying to parse Test Case within Test Suite using feed url 

https://<CLM>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project Alias>/testcase?fields=feed/entry/content/testcase/(webid|title|identifier|testsuite[@href='https://<CLM>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project Alias>/testsuite/urn:com.ibm.rqm:testsuite:156'])

In the response i see Next page link as href="https://<CLM>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project Alias>/testcase?fields=feed%2Fentry%2Fcontent%2Ftestcase%2F%28webid%7Ctitle%7Cidentifier%7Cupdated%7Ctestsuite%5B%40href%3D%27https%3A%2F%2F<CLM>%2Fqm%2Fservice%2Fcom.ibm.rqm.integration.service.IIntegrationService%2Fresources%2F<Project Alias>%2Ftestsuite%2Furn%3Acom.ibm.rqm%3Atestsuite%3A156%27%5D%29&amp;token=_KiojwJhKEe2sJ6okXs0TRQ&amp;page=1"/>

If i send reportable REST API with href next page url i do not see next page contents. Also note that if i request for test suite elements for given unique resource id i am able to see all the elements of the Test Suite


Comments
Ralph Schoon commented Jan 23 '23, 2:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

As already mentioned, I had to url unencode the next page link to make it work.


permanent link
Ravish Udupa (11) | answered Jan 13 '23, 1:27 p.m.

 Thank you Ralph Schoon. I will go through links shared. I am using RQM not DNG as such. Is it expected that RQM also supports similar capabilities?


Comments
Ralph Schoon commented Jan 13 '23, 1:45 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

permanent link
Ralph Schoon (63.1k33645) | answered Jan 12 '23, 9:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 12 '23, 9:48 a.m.

 If you use a reportable REST API, please have a look at https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ in the section paging. Please read it carefully. Please note that you can pass a parameter specifying the page size. Please be aware that the URL you get back is URL encoded and must be unencoded to work. Similar concepts are supported with the OSLC APIs and similar considerations apply.


It is a good idea to use Firefox RESTClient to play with the calls. This allows to login to the application and then inherit the authentication. See https://rsjazz.wordpress.com/2019/05/13/using-a-rest-client-to-authenticate-to-elm-clm-applications/ . In other tools such as POSTMAN you have to authenticate first and then use the session information. See https://rsjazz.wordpress.com/2021/09/29/using-the-ewm-rest-and-oslc-apis/ for some additional links and reading. The specific product is EWM, but a lot of the content applies to the other products APIs as well. 

Your answer


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