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

Can anyone help me retrieve the linked requirements to a script step from the execution results via RPE?

 Hello,

  I am using RQM 5.0.2 and RM 5.0.2 with RPE 1.2.1.1 and am trying to build a template that reports the results of a test case execution.  In the results, I want to expand the test script used in the test case as it existed at the time of the execution, including all linked requirements (requirements are in RM).

  As of RQM 5.0, it is my understanding that this information is supposed to be available via the Reportable Rest API for RQM.  Has anyone been able to write an RPE template that retrieves this data?  The data source schema for the executionresult element shows the Requirement data item but when I try using it in RPE, nothing is ever returned.

I have tried constructing the URLs and using Firefox Poster to see if I can get the requirement value to show up but I have had no luck.  I would appreciate any help on how to construct a URL to retrieve the execution results that includes the Requirement information at the step level.

Thank you,
Jamie Berry.

0 votes



One answer

Permanent link
 After poking around some, I finally found a way that works (at least for now).  For my RPE template that accesses a specific Test Case Execution result, I changed the URL from:

host/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Project/executionresult/urn:com.ibm.rqm:executionresult:34727

host/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Project/executionresult/urn:com.ibm.rqm:executionresult:34727?fields=feed/entry/content/executionresult/stepResults/stepResult/requirement|feed/entry/content/executionresult/*

and all the fields I needed were there.  I was also able to construct a feed URL that returns all the execution results for a test case that includes the requirement links.  This feed URL is:

 host/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Project/executionresult?fields=feed/entry/content/executionresult/(stepResults/stepResult/requirement|*|testcase[@href='https://host/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Project/testcase/1903002537'])

I haven't tried the feed query in RPE yet, just Poster, but I am fairly confident it will work.

Jamie.

0 votes

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
× 478
× 332

Question asked: Jan 27 '16, 1:07 p.m.

Question was seen: 3,848 times

Last updated: Jan 27 '16, 5:28 p.m.

Confirmation Cancel Confirm