1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
<xsl:template match="/">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
15
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
37
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
41
border-collapse: collapse;
49
border-bottom: 5px solid #fff;
56
border-bottom: 1px solid #fff;
58
border-top: 1px solid transparent;
60
#mago-table tr:hover td
78
color: green !important;
82
color: red !important;
86
color: orange !important;
90
<script type="text/javascript">
91
function ReverseDisplay(d) {
92
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
93
else { document.getElementById(d).style.display = "none"; }
98
<h1>Mago Tests Report</h1>
100
This are the results from a run of Mago Desktop Tests.
101
If you find false positives, please, report bugs against <a href="https://launchpad.net/mago/+filebug">Mago</a> project.
105
<dt><xsl:value-of select="suite/@name" /></dt>
107
<dt><xsl:value-of select="suite/class" /></dt>
109
<dt><xsl:value-of select="suite/description"/></dt>
111
<table id="mago-table">
114
<th>TestCase Name</th>
118
<th>Time Elapsed (s)</th>
125
<xsl:for-each select="descendant::case">
128
<xsl:value-of select="@name"/>
131
<xsl:value-of select="child::description"/>
134
<xsl:value-of select="child::method"/>
136
<xsl:for-each select="descendant::result">
138
<xsl:when test="child::error/child::text() = 1">
139
<td class="result-error">Script Error</td>
141
<xsl:when test="child::pass/child::text() = 0">
142
<td class="result-fail">Test Failed</td>
145
<td class="result-pass">Passed</td>
149
<xsl:value-of select="child::time/child::text()"/>
152
<xsl:value-of select="child::message/child::text()"/>
155
<xsl:apply-templates select="child::screenshot" mode="link"/>
158
<xsl:if test="child::pass/child::text() != 1 or child::error/child::text() = 1">
159
<xsl:call-template name="stacktemplate">
160
<xsl:with-param name="stackid">
161
<xsl:value-of select="translate(../@name, ' ', '_')" />
163
<xsl:with-param name="stacktext">
164
<xsl:value-of select="child::stacktrace/child::text()" />
173
<xsl:for-each select="suite/result">
176
<td colspan="7"><font color="red"><h2><b>The suite had an error in the setup, teardown or cleanup methods.</b></h2></font></td>
178
<xsl:call-template name="stacktemplate">
179
<xsl:with-param name="stackid">
180
<xsl:value-of select="string('testsuite_stacktrace')" />
182
<xsl:with-param name="stacktext">
183
<xsl:value-of select="child::stacktrace/child::text()" />
192
<!-- *** Last Paragraph Space *** -->
197
<xsl:template match="screenshot" mode="link">
199
<xsl:value-of select="text()"/>
202
<xsl:template name="stacktemplate">
203
<xsl:param name="stackid" />
204
<xsl:param name="stacktext" />
205
<a href="javascript:ReverseDisplay('{$stackid}')">
206
[Show/Hide Stacktrace]
208
<div id="{$stackid}" style="display:none;">
210
<xsl:value-of select="$stacktext" />