How to get more than 50 executionresults in 1page
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
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
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
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
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.
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>
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>
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.
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.
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 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