Hi all,
I'd like to create a "Test Session Details" report that covers the follow content.
1. the sessions meta data (run-date, assigned user, test environment , etc.)
2. the used test case data (Text, Passed/Failed criteria, Category, etc. )
and
2.1 the concrete result (verdict) for this test case in this session
#1 and #2 are no problem, but I'm stuck with #2.1.
I cannot find a way to filter the results (related to the test case) for the one result (related to this test session)
The report run with a single Item selection (namely the Test Session's ID) and looks like this
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>&reporttitle</title>
<%screenStyleSheet%>
<%printerStyleSheet%>
<style type="text/css" media="screen">
.embedded_table th {padding: 2px 8px; background-color: #60607A; color: #FFFFFF; font-weight: bold; text-align: center; vertical-align: top}
.embedded_table td {padding: 2px 8px; }
table.list {border: 0px;}
tr.list {border: 0px;}
td.list {border: 0px;}
table.border {border: 1px solid black; border-collapse:collapse;}
</style>
</head>
<script type="text/javascript">
var line_count=0;
var REPORT_ISSUES = "";
function writeEvenOddTRTag() {
line_count++;
if (line_count%2 == 0)
document.write("<tr class='even_row'>");
else
document.write("<tr class='odd_row'>");
}
</script>
<%subparams default="true" %>
<%dateformat%>
<%datetimeformat%>
<%sortby &sortby%>
<body>
<p class="header">&reportheader</p>
<p class="date">as of :  <%currentdate%> <a class="noPrint" id="RERUNLINK"><img title="Refresh this Report" src="<%hosturl%>RQ_MKS_ALM_2009/refresh.gif"></a></p>
<%begindetail%>
<script type="text/javascript">
if(REPORT_ISSUES == "") REPORT_ISSUES = <%<%builtin ID%>%>;
else REPORT_ISSUES = REPORT_ISSUES+","+<%<%builtin ID%>%>;
</script>
<table class="detailcols fullWidth">
<tr>
<td class="list">
<!-- start table per item -->
<table class="fullWidth">
<tr>
<th><%Type%>:</b> <a style="color:#FFFFFF" href="<%hosturl%>im/WebClient?IssueID=<%<%builtin ID%>%>"><%<%builtin ID%>%></a>-<%<%builtin Project %>%></th>
</tr>
<!-- Overview info -->
<tr class="detailheading">
<td>1.0 Test Session Overview</td>
</tr>
<tr class="list">
<td>
<b>1.1 Overview</b>
<!-- Overview info -->
<table class="fullWidth">
<tr>
<td colspan="2"><b>Zusammenfassung:</b> <%Summary%></td>
</tr>
<tr> <td colspan="2">
<b>betroffener Prüfling:</b>
<%beginrelationshipsdetail EPEC_relDeviceDesc%>
<a href="<%hosturl%>im/viewissue?selection=<%Relationship ID%>"><%Relationship ID%></a><%Relationship Summary%>
<td>
</tr>
<tr>
<td width="50%"><b>Project:</b> <%Project%></td>
<td width="50%"><b>Assigned User:</b> <%<%builtin Assigned User%>%></td>
</tr>
<tr>
<td width="50%"><b>Test Objective:</b> <%RQ_Test Objective%></td>
<td width="50%"><b>State:</b> <%<%builtin State%>%></td>
</tr>
<tr>
<td width="50%"><b>Tests As Of Date:</b> <%<%builtin Tests As Of Date%>%></td>
<td width="50%"><b>Priority:</b> <%RQ_Priority%></td>
</tr>
<tr>
<td width="50%"><b>Session Type:</b> <%RQ_Session Type%></td>
<td width="50%"></td>
</tr>
</table>
</td>
</tr>
<!-- Tests info -->
<tr class="detailheading">
<td>2.0 Tests</td>
</tr>
<tr >
<td >
<!-- Test Case info -->
<b>2.1 Tests</b>
<p>This session has the following tests:</p>
<script type="text/javascript">linecount=0;</script>
<table class="white_bg list">
<tr class="list"><td class="list"></td></tr>
</table>
<%beginrelationshipsdetail Query[(walktestsession[<%<%builtin ID%>%>])] %>
<table class="detailcols fullWidth">
<tr class="detailheading">
<span>
<td colspan="1" width="10%"><a href="<%hosturl%>im/WebClient?IssueID=<%Relationship ID%>"><%Relationship ID%></a></td>
<td colspan="3" width="70%"><%Relationship <%builtin Summary%>%></td>
<td colspan="1" width="10%"><%Relationship <%builtin Category%>%></td>
<td colspan="1" width="10%">
<%begintestresultdetail%>
<%testresult Verdict%> </br>
<%endtestresultdetail%>
</td>
</span>
</tr>
<tr>
<span>
<td style="border: 1px solid grey;" colspan="3" width="50%" ><%Relationship RQ_Text%></td>
<td style="border: 1px solid grey;" colspan="3" width="50%" ><%Relationship TM_PassFail_Criteria%></td>
</span>
</tr>
</table>
<table class="white_bg list">
<tr class="list"><td class="list"></td></tr>
</table>
<%endrelationshipsdetail%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<hr class="full_line">
<%enddetail%>
<center class="footer"></center>
<script type="text/javascript">
if (REPORT_ISSUES == "")
document.all.RERUNLINK.href = "<%hosturl%>im/runreport?selection=¤tReportName";
else
document.all.RERUNLINK.href = "<%hosturl%>im/runreport?selection=¤tReportName&issues=" + REPORT_ISSUES;
</script>
</body>
</html>
which gives somehting like this
Any Ideas?