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

RQM API: Get executionresult for executionworkitem

I'm trying to obtain a list of execution results for a specific testplan. I've successfully managed to get testcase for a given testplan, and then the execution records for a given testcase, but seem to have fallen at the last hurdle - I need the results for a specific TER. As I'm using version 3.0.1.2 I believe this is the way I need to get this data.

This is the URL I am requesting:
baseURL/projectName/executionresult?fields=feed/entry/content/executionresult/(identifier|executionworkitem[@href='baseURL/projectName/executionworkitem/urn:com.ibm.rqm:executionworkitem:43496'])

where baseURL = https://server:port/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources

This returns all results. Perhaps someone can spot what I am doing wrong.
Version 3.0.1.2

0 votes



One answer

Permanent link
I don't think you're doing anything wrong and your syntax appears correct.  I also could not get this to behave as expected in 3.0.1, but I could in 4.0.0.1.  Defect 55129 (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=55129) indicates this should work in 3.0.1 so I have no explanation why you and I see different behavior.

FYI, if you can upgrade to 4.0, you can accomplish what you need in a single call, without traversing testplan->test case->execution record->execution result:

baseURL/projectName/executionresult?fields=feed/entry/content/executionresult/(*|testplan[@href='baseURL/projectName/testplan/urn:com.ibm.rqm:testplan:2'])

1 vote

Comments

Unfortunately, upgrade is not an option at this time. Thank you for confirming this works in a later version. I wonder if there is another way? Parsing 17k results might take too long.

Unfortunately, there is no other way to filter an executionresult feed based on a specific testplan.  


Note, support for the testplan filter on the executionresult feed was added in RQM 4.0 (see footnote 4 of https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources).

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
× 479

Question asked: Nov 12 '12, 6:38 a.m.

Question was seen: 6,911 times

Last updated: Nov 13 '12, 7:38 a.m.

Confirmation Cancel Confirm