It's all about the answers!

Ask a question

RQM executionresult Rest API : Not able to get all the pages


Venkatesh Prasad (216) | asked Feb 14, 9:08 a.m.
edited Feb 14, 10:35 a.m.
Hello All,

Need your help and suggestions please. I am trying to extract All the 27,000+ Test Execution Results along with Test Steps from RQM to XML (Plan is to later parse the extracted xml data and then use that data to import into Jira). I am using the switch "abbreviate=false" which is doing the trick. BUT, it is extracting only the first 2 pages out of 500+ pages.
I tried to use the switch -Xmx1024m but thats not doing anything.I am trying with RQMUrlUtility and Browser's RESTCLIENT and both are having the same issue.

Below is the link/code I use
java -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" -jar RQMUrlUtility.jar -command GET -user USER -password PASSWORD -filepath C:\Users\test\DownLoad_XML.txt -url https://my.localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/my_pa_+%28Quality+Management%29/executionresult?abbreviate=false

I am fine if there is a way to extract the data in smaller chunks or with one shot.
Please suggest ways.

Thanks

Venkatesh Prasad

Accepted answer


permanent link
Ara Masrof (3.1k15) | answered Feb 14, 11:30 a.m.
JAZZ DEVELOPER

 See:

Section: Feeds and Advanced Properties 

"Max Feed Entries/Page: (range: 1 - 512, default: 50) The size of a 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). Note, a feed page size more than the maximum of 512 is rounded down to 512. "


 

Venkatesh Prasad selected this answer as the correct answer

One other answer



permanent link
Venkatesh Prasad (216) | answered Feb 15, 6:19 a.m.
Thank you very much Ara. Somehow I had skipped this section why going through the link.
But, I am still not able to see the next page with the feed link that is available in the code. For example, I get this code.

<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">executionresult ATOM feed for project area Test_PA (Quality Management)</title><id>https://clm.rat.itshost.se/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test_PA+%28Quality+Management%29/executionresult</id><link href="https://clm.rat.itshost.se/qm/web/console/" rel="alternate"/><link rel="self" href="https://clm.rat.itshost.se/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test_PA+%28Quality+Management%29/executionresult?abbreviate=false&amp;token=_Lpqs8DEPEemK2tHX5vJt2g&amp;page=0"/><link rel="next" href="https://clm.rat.itshost.se/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test_PA+%28Quality+Management%29/executionresult?abbreviate=false&amp;token=_Lpqs8DEPEemK2tHX5vJt2g&amp;page=1"/><link rel="last" href="https://clm.rat.itshost.se/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test_PA+%28Quality+Management%29/executionresult?abbreviate=false&amp;token=_Lpqs8DEPEemK2tHX5vJt2g&amp;page=553"/>

So, if I enter the link for page 1 in the browser (link taken from the above code), I get the same results as page 0

Please could you let me know how will I navigate to the next few pages.

Your answer


Register or to post your answer.