how to display list of executionworkitem and subsequent list for each work item in RPE?
One answer
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.
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
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.