Use RPE to get execution based information related to Test Plan
I have an RPE template created which pulls all pertinent Test Plan sections (including custom sections) but am finding it difficult to get the execution results and defects as they relate to the test plan.
After executing test for the current iteration, I need to have RPE generate a report using some of the static test plan information, coupled with the results and defects revealed by this latest execution. I do not believe my issue is specific to the version of RPE that I am using, but I am reporting against RQM and RTC 6.0.4.
I have tried a few different ways of jumping off from the test plan information, to no avail. Can someone please tell me how to transform my data source from the test plan feed over to the execution results?
Thanks in advance!
Accepted answer
You can refer to filtering properties in https://jazz.net/wiki/bin/view/Main/RqmApi#fields
You can try testplan -> testcase -> executionworkitem and print executionresult.
from testcase identifier, you can derive the URI for executionworkitem feed.
var pos=identifier.indexOf(/testcase/);
var configURI=identifier.substring(0,pos);
configURI=configURI + "/executionworkitem?fields=feed/entry/content/executionworkitem[testcase/@href='" + identifier + "']/*"
configURI
Comments
Thank you for your quick and detailed response. I interpreted your reference "executionworkitem feed" to mean that I should reference a schema based on feed.xsd. Is that correct? ...or should I be using a details schema (based on qm.xsd) or perhaps even one based on executionworkitem.xsd?
I figured out how to make use of your suggestion, and I am now making both transitions adequately. Had to start from a query from the testcase details feed, then use this script to configure the URI for a feed.xsd based schema.