It's all about the answers!

Ask a question

Sorting Test Suites in RPE


Jessica Hutchinson (11) | asked Nov 10 '20, 1:59 p.m.

 Exporting Test Suites and their associated content using a test plan number but the export order of the suites seem to be random. Does anyone know what it's basing this sorting order from and how to override that order? Exporting from QM using RPE. 


Comments
Jessica Hutchinson commented Dec 14 '20, 12:00 p.m.

 I have added the template that we are using for reference. 


One answer



permanent link
Subramanya Prasad Pilar (4.2k14) | answered Nov 11 '20, 2:55 a.m.
edited Nov 11 '20, 3:03 a.m.

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 commented Dec 14 '20, 8:35 a.m.

We only have one test plan number so we are not really sorting the test plan - just the suites under it.  


Jessica Hutchinson commented Dec 14 '20, 12:00 p.m.

 I have added the template that we are using for reference. 
https://www.dropbox.com/s/4i7589qc8afs8vd/RPE_Template.dta?dl=0 

Your answer


Register or to post your answer.