how to use RQMUrlUtility to get more than 50 test artifact records back
Hi Someone who may concern,
We are working on RQM 6.0.3 and RQMUrlUtility with the same version.
We want to read back content for all test case content back in one project by using RQMUrlUtility.jar
This is the address for query:
https://[localhost]:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[project name]/testcase?oslc_config.context=[configuration]
But we noticed it only return 50 items back. After checking documentation, I noticed this is caused by limitation defined in server side, and max one may be 1000. However we need to get back nearly 20000 back. so increasing max page will not work for us.
And I noticed in the xml returned, it provide index for the next and last 50 items
<link rel="self" href=[query link]&page=0"/>
<link rel="next" href=[query link]&page=1"/>
<link rel="last" href=[query link]&page=387"/>
So, I tried to call RQMUrlUtility with link adding "&page=1", but RQMUrlUtility returned the following error:
'page' is not recognized as an internal or external command,operable program or batch file.
It seems RQMUrlUtiltiy can not recognize "&". And I also tried to use "&" instead of "&" to see whether it cab be recognized, but it still failed.
However, when I tried to use the link adding"&page=1" on chrome browser, it can work properly, xml can be returned with proper content.
So, my question is how to get more than 50 items back by using RQMUrlUtility?
Thanks!
Best Regards,
Jane Zhou
|
2 answers
Correct, the RQM Reportable REST API feeds are paged and the page size is controlled by an Advanced Property (see https://jazz.net/wiki/bin/view/Main/RqmApi#Advanced_Properties). Each feed page has a unique URL including page number and token request parameters (see https://jazz.net/wiki/bin/view/Main/RqmApi#Feeds). However, the RQM URL Utility does not support request parameters (see https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Command_Lines_Arguments_explaine).
|
Hello, how we can use RQM API Utility with query condition? Comments If you have a question, please ask your own question. Please do not ask questions as answer to questions others have asked. Put reasonable effort into your question - one sentence is usually not enough. You can take this as a guide: How should I ask a question in the Forum if I want to receive useful answers? |
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.