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

Unable to retrieve next page contents using RQMUrlUtility

 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

0 votes

Comments

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



3 answers

Permanent link

 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. 

0 votes


Permanent link

 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?

0 votes

Comments


Permanent link

 @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

0 votes

Comments

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

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: Jan 11 '23, 10:14 p.m.

Question was seen: 1,276 times

Last updated: Jan 23 '23, 2:40 a.m.

Confirmation Cancel Confirm