Report Recipe using filter-tag
Hello colleagues,
I'm trying to create a CSV-report viewing Test-Sessions and the relationships down to TestSteps (Testsession -> TestSuite -> TestCase -> TestStep).
That is the csv-headline:
ID;Type;Summary;Verdict;Annotation
I'm using the RelationshipL#-Tags and so I get all necessary Items.(that works fine 🙂
For the Testresults (TestCase) on level 2 I use <%begintestresultdetail%>-Tags and so I get <%testresult Verdict%> and <%testresult Annotation%>. (that also works fine 🙂
Now on level 3 (TestSeps) I need <%beginteststepresultdetail%>-Tags for geting <%teststep Result%> and <%teststep Annotation%> but here I get a list and so I must filter the list for the current (level 3) TestStep.
I think it must be like this
<%filter%>(field[ID]=<%teststep Step ID%>)<%endfilter%>
but it doesn't work.
(field[ID] should be the current TestSep ID from level 3)
The error-message I get is:
MKS124814: Cannot show view information: Error parsing rule "(field[ID]=<%teststep Step ID%>)..." : MKS124247: Field "ID": Value "<%teststep Step ID%>" is not a valid integer.
Here is the complete recipe:
ID;Type;Summary;Verdict;Annotation
<%begindetail%>
<%<%builtin ID%>%>;<%<%builtin Type%>%>;<%<%builtin Summary%>%>;;;
<%beginrelationshipsdetail Tests%>
<%Relationship <%builtin ID%>%>;<%Relationship <%builtin Type%>%>;<%Relationship <%builtin Summary%>%>;;;
<%beginrelationshipsdetailL2 Contains,Test Steps%>
<%RelationshipL2 <%builtin ID%>%>;<%RelationshipL2 <%builtin Type%>%>;<%RelationshipL2 <%builtin Summary%>%>;<%begintestresultdetail%><%testresult Verdict%>;<%testresult Annotation%><%endtestresultdetail%>;
<%beginrelationshipsdetailL3 Contains,Test Steps%>
<%RelationshipL3 <%builtin ID%>%>;<%RelationshipL3 <%builtin Type%>%>;<%RelationshipL3 <%builtin Summary%>%>;<%beginteststepresultdetail%><%filter%>(field[ID]=<%teststep Step ID%>)<%endfilter%><%teststep Result%>;<%teststep Annotation%><%endteststepresultdetail%>;
<%endrelationshipsdetailL3%>
<%endrelationshipsdetailL2%>
<%endrelationshipsdetail%>
<%enddetail%>
Do I made something wrong with the filter-tag?
kind regards
Uwe

