test result verdict in report
As per this thread, related issue:
Hi,
Is it possible to display the field values of test steps in test session report even if the verdict field is empty
As per this thread, related issue:
Hi,
Is it possible to display the field values of test steps in test session report even if the verdict field is empty
Hi
First of all i have realized there are many thread you made on same question, would be very helpful if you close other thread and continue on one may be here only. Otherwise it's very confusing to understand which is latest and active thread.
About your request as far as i understood in your request you only see test cases having verdict and you can extract test steps for these i hope so. But your question is you want to display other test cases also from that test session into report along with test steps even though there is no verdict. Right? Correct me if am wrong.
First of all, mechanism of test session report is bit different and <%begintestresultdetail%> will give you test cases where you have verdict. These test cases are also displayed in Test Results tab. So from here you can process at least those test cases where you have verdict and also you have other information too like annotation, result, Test Steps etc.
Now let's consider your Test Session total contains 50 test cases and out of 50 only 30 has verdict but rest 20 are without any result(verdict). So with above way which i guess you already tried as well you have already processed these 30 and now issue is only with remaining 20 and for these 20 test cases you can try below way:-
<%beginrelationshipsdetail Query[(walktestsession[<%<%builtin ID%>%>])]%>
<td><a href="<%hosturl%>im/WebClient?IssueID=<%Relationship ID%>"><%Relationship ID%></a></td>
<td><%Relationship Category%></td>
<td><%Relationship Text%></td>
<td><%Relationship Expected Results%></td>
</tr>
<%beginrelationshipsdetailL2 <%builtin Test Steps%>%><%filter%>(item is teststep)<%endfilter%>
<tr>
<td class="level4_indent"><a href="<%hosturl%>im/WebClient?IssueID=<%RelationshipL2 ID%>"><%RelationshipL2 ID%></a></td>
<td class="level4"><%RelationshipL2 Type%></td>
<td class="level4"><%RelationshipL2 Description%></td>
<td class="level4"> </td>
</tr>
<%endrelationshipsdetailL2%>
<%endrelationshipsdetail%>
This will also give you all 50 test cases again but you need to do bit of javascript coding to identify which you have already processed (30 with verdict) and here only remaining 20 need to be processed. (Hint:- Try to put Verdict value empty in report for these test cases.)
This is how you can try and hope it will help you. Feel free to ask question.
I will wait for your feedback whether it works for you not.
Vielen Dank / Many Thanks,
Kapil Jain
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.