Sorting Test Suites in RPE
One answer
You cannot add an elevated attribute (Special Attrbute) at feed/entry/content/testsuite for testplan/@href or testplan/id.
Hence you need to use fields filtering capability provided by RQM's reportable API:
First add the query feed/entry/content/testplan, sorted by feed/entry/content/testplan/webId.
Add a Data Source Configuration element for TestSuiteFeed data source. Set its URS as following:
var pos=identifier.indexOf(/testplan/);
var configURI=identifier.substring(0,pos);
configURI=configURI + "/testsuite?fields=feed/entry/content/testsuite[testplan/@href='" + identifier + "']/*"
configURI;
Now if you use feed/entry/content/testsuite query (from TestSuiteFeed data source), the test suites are sorted by testplan number (webId).
Attaching the screenshot of sample template:
Comments
Jessica Hutchinson
Dec 14 '20, 12:00 p.m.