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

RQM API - Trying to export test scripts to csv - Feed displays same 512 items on every page

I am trying to export ~44000 test scripts (with test steps) to a csv file using this article -  About exporting test scripts to CSV for a test case/all test cases in a Rational Quality Manager (RQM) project area. I am able to get back 83 pages of XML data. However, when I go to each subsequent page, the data is exactly the same - it's the same 512 initial test scripts that are on the very first page. Why would this be happening? How can I fix it so that I can see the test scripts beyond the first 512 items?

1

1 vote



3 answers

Permanent link
You can follow the "next" links in the response itself. But you need to remove the encoding (before the page number) from that link.
Replace &page=2 with &page=2

1 vote


Permanent link

You use the "next" URL to get the URL for the next page.

I have documented this here: https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/
That is for EWM, but it works the same way for ETM. 


You use https://MYCOMPANY.COM/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/testscript?abbreviate=false&token=_5PeXEKzJEe-9e-ld-oeldg&page=1 for the 1st page after the initial request.
Dependent on the browser or environment, you might have to url unencode the request or not.

0 votes

Comments

Yes, I did use the next URL, along with the one marked as page 83, along with one where I just filled in a page number. Every page brings back the same results as the very first page. That is the issue. I can't get any results beyond the first 512 items, no matter which page I go to. Why would this be happening? How do I fix it in order to get subsequent results?


Do you have any updates on my questions? I use the page links to try to get the next items in the feed, but it always returns the same items as the first page. Do you know how I can fix this issue?


Permanent link

This is a forum, not support. If you need support, you need to open a case with support.

If you always get the same, something in the query is wrong.


As per the documentation https://jazz.net/wiki/bin/view/Main/RqmAp the paging is controlled by an advanced property.  Default is 50. I changed it to 5.

I get the UUID of the PA I want.

I get the testcases:
The result contains the page information. I can request the page I want

https://elm.example.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_MbiPAJuBEe-u4qRaQ3950w/testcase?token=_MIkQ0LJYEe-oCYgRSQYVaA&page=0

When you get the page information you might have to url decode/encode for this to work e.g. & might have to be replaced by & or vice versa. e.g. 
https://elm.example.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_MbiPAJuBEe-u4qRaQ3950w/testcase?token=_MIkQ0LJYEe-oCYgRSQYVaA&page=1

So works for me, as already suggested in my first answer.

0 votes

Comments

If you always get the same, maybe your query is broken.

Available headers are explained here: https://jazz.net/wiki/bin/view/Main/RqmApi#HTTP_GET_Requests the one you use is not in the list.

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
× 10,938

Question asked: Nov 26 '24, 11:12 a.m.

Question was seen: 332 times

Last updated: Dec 05 '24, 2:47 a.m.

Confirmation Cancel Confirm