It's all about the answers!

Ask a question

how to display list of executionworkitem and subsequent list for each work item in RPE?


ataul gani (21113) | asked Dec 15 '16, 11:50 a.m.
 Hi Guys,
I am trying to display the list of 'executionworkitem' and subsequent result details for each of the work item. As an example, i can get the workitem list but cannot get the list under each of the workitem. I appreciate any effective answer or clue.

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Dec 22 '16, 1:22 a.m.
To get the list of resources, use feed url. You can get the executionworkitem feed url though using testscript identifier.

var pos=identifier.indexOf(/testscript/);
var configURI=identifier.substring(0,pos);
configURI=configURI + "/executionworkitem?fields=feed/entry/content/executionworkitem[testscript/@href='" + identifier + "']/*"
configURI

From executionworkitem get feed, you can get executionresult url (feed/entry/content/executionworkitem/executionresult/href) and then print executionresult data.

Comments
ataul gani commented Dec 22 '16, 10:43 a.m.

 Hi Prasad,

Thanks a lot for your reply. I have list of step results like (No, actualValu, Expectected,Defect no etc) linked to each Run which is linked to each of TCER NO. When I print steps from each run prints one after another without giving me control to differentiate what run number belong to which steps. is it possible to achieve this certain way? I appreciate your effort to help me.

 

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.