It's all about the answers!

Ask a question

How to get more than 50 executionresults in 1page


ko koji (64) | asked May 24 '10, 9:34 p.m.
We can get only 50 executionresults in 1 page by linked below.

https://<host>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/executionresult/?abbreviate=false

How we can get more than 50 executionresults in 1 page or in 1 time ?

In RTC, We can get more than 50 results by MaxResults=XXX in feed .

Thanks
ko

6 answers



permanent link
Vinod Varma (2121) | answered Mar 09 '11, 7:55 a.m.
I am trying to access execution result in RQM through API
https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/MyProject/executionresult/?abbreviate=false

I find that only 50 recent test execution results are reported even while there are many more. Is there any way to get more than 50 records?

Thanks in advance.

Vinod

permanent link
Paul Slauenwhite (8.4k12) | answered Mar 10 '11, 6:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I am trying to access execution result in RQM through API
https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/MyProject/executionresult/?abbreviate=false

I find that only 50 recent test execution results are reported even while there are many more. Is there any way to get more than 50 records?

Thanks in advance.

Vinod


See https://jazz.net/wiki/bin/view/Main/RqmApi#Feeds.

To configure the advanced server preference:

1) Open a browser and log in as a member of the JazzAdmins group to the Admin Web UI on the Jazz Team Server:

https://host-name:9443/rqm/admin

In the Admin Web UI, click the Server tab.

2) In the Configuration pane, click Advanced Properties.

3) Search for RQM Integration Component.

4) Edit Max Feed Entries/Page.

permanent link
Paul McMahan (13614) | answered Jun 14 '11, 10:38 a.m.
JAZZ DEVELOPER
If a feed spans more than one page then RQM provides access to subsequent pages according to the ATOM paging specification at:
http://tools.ietf.org/html/rfc5005#section-3

For example, if a project has 51 test cases then the first page of the test case feed will contain 50 entries (by default) and a link to the next page of the feed which contains the last entry. The link will look something like:
<link>

permanent link
Kyle Zhu (4144) | answered Jun 14 '11, 11:44 a.m.
If a feed spans more than one page then RQM provides access to subsequent pages according to the ATOM paging specification at:
http://tools.ietf.org/html/rfc5005#section-3

For example, if a project has 51 test cases then the first page of the test case feed will contain 50 entries (by default) and a link to the next page of the feed which contains the last entry. The link will look something like:
<link>


I think I know what is going on here.

The link provided in ATOM returned by feedurl contains a token parameter
<link>

In RQM 2, if you ignore the token parameter and send back a request with only page parameter, it will still return the data of next page. While comes to RQM 3, you have to also include the token parameter to get next page.

I think I'm misguided by the com.ibm.rqm.ct.client.internal.RQMRestClient implementation in RQMCopyUtility project.(It's downloaded from https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#RQM_Copy_Utility_V0_9_4). When reading data from feedurl, it create the GET method like this:

GetMethod get = new GetMethod(serverURL
+ RQM_REST_URL
+ projectAreaName + "/"
+ artifactType + "/"
+ PAGE_CGI_PARAM + // PAGE_CGI_PARAM = "?page="
Integer.toString(page));

It makes the assumption that feedurl supports query like https://<host>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testcase?page=7

But actually in RQM 3, you should always get the next page link from return ATOM body's link tag.

permanent link
Paul McMahan (13614) | answered Jun 15 '11, 11:54 a.m.
JAZZ DEVELOPER
I downloaded the copytool utility mentioned in the last post and located the lines of source code mentioned. I found that the source code actually does include the token request parameter in addition to the page request parameter:

GetMethod get = new GetMethod(serverURL
+ RQM_REST_URL
+ encodedProjectAreaName + "/"
+ artifactType + "/"
+ "?" + TOKEN_CGI_PARAM
+ token + "&"
+ PAGE_CGI_PARAM +
Integer.toString(page));

I checked the file history in RQM and see that it has been this way since the initial revision. So maybe the local copy was modified after downloading it.

permanent link
Kyle Zhu (4144) | answered Jun 20 '11, 7:09 p.m.
I downloaded the copytool utility mentioned in the last post and located the lines of source code mentioned. I found that the source code actually does include the token request parameter in addition to the page request parameter:

GetMethod get = new GetMethod(serverURL
+ RQM_REST_URL
+ encodedProjectAreaName + "/"
+ artifactType + "/"
+ "?" + TOKEN_CGI_PARAM
+ token + "&"
+ PAGE_CGI_PARAM +
Integer.toString(page));

I checked the file history in RQM and see that it has been this way since the initial revision. So maybe the local copy was modified after downloading it.


I just downloaded again RQM-Extras-RQMCopyUtil-2.0.1-iFix3 from Jazz.net and verified what you said is true.

And when I come back to the RQMCopyUtil project in our team stream, that version does not handle the TOKEN CGI param. That's strange enough.. As we just migrate from CVS to RTC, all the check in history are lost. I'm not able to locate which guy check in these code.

So I would assume some one from our team get this "fake" copy of RQMCopyUtil from nowhere and it makes believe it's the original copy from Jazz.net

Anyway, thanks for your time and patient. I'm very glad it's all sorted out. Thanks pmcmahan :D

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.