Help building Test Script Step Result Template in RPE
Hello,
Accepted answer
Hi,
There are some good videos on youtube and also a lab exercise at https://jazz.net/library/article/1490.
Regarding you reporting query, I would say start simple and build the template iteratively. Print test plan and it's test case details first.
High level steps
1. Start with Test Plan (TP) feed filter by test plan name or directly use Test Plan QM schema. This could be TP_feed/qm schema
2. For every Test Case (TC) in TP from #1, add DSC element to get more details about TC using QM feed. This should be TC_QM schema.
3. For every test case, fetch all execution work item details. This would need ExecutionWorkItem_Feed schema.
var pos=identifier.indexOf(/testcase/);
var configURI=identifier.substring(0,pos);
configURI=configURI + "/executionworkitem?fields=feed/entry/content/executionworkitem[testcase/@href='" + identifier + "']/*"
configURI;
4. Get each ExceutionWorkItemDetails_QM using feed/entry/content/executionworkitem/identifier URI.
5. From each execution work item details, get result suing executionworkitem/executionresult/href. This would need ExecutionResultDetails_QM schema.
- executionresult/state should provide the result.
RPE also ships sample templates for printing basic test plan, test case, script details. Do take a look.
Alternative and preferred approach
You could create such a report in an easier from Jazz Reporting Service (JRS). If you want to generate Word document, we've adding a feature for generating Word, PDF document directly from JRS.
Thanks,
Kumar
Comments
I would love to create the report using JRS, and much prefer to, however I am unsure of how to go about it. I posted a question yesterday which brought me to the conclusion that I could not generate this report using JRS. I found that I am only able to select QM artifacts when switching my data source to rational data warehouse as opposed to LQE. Even then I cannot find the appropriate starting point for creating this particular report in JRS. Would you be able to help or perhaps point me to a resource that could help in this much simpler preferred approach? It would greatly simplify my task, any help would be appreciated.
My knowledge on JRS is limited. BTW, the workshop link I shared above is good for JRS learning.
If you believe that some of the details are missing in JRS, start iterative template design using RPE.