<head>
<title>Tests of <xsl:value-of select="//product/@name" /></title>
<style type="text/css">
- .def { font-family: Arial, Verdana, "Times New Roman", Times, serif;}
+ .def { font-family: monospace, Arial, Verdana, "Times New Roman", Times, serif;}
.OK { background-color:#00FF00; }
.KO { background-color:#FF0000; }
.KF { background-color:#FFA500; }
<xsl:template match="product" mode="test">
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="/salome/product/@history_file"/></xsl:attribute>
+ history view
+ </a>
+
<h3>Tests</h3>
<xsl:for-each select="tests/testbase">
<table>
<!-- Header -->
<tr bgcolor="#9acd32">
- <th width="150">module</th>
+ <th width="150">grid</th>
<th width="100">success</th>
<th width="200"></th>
<th width="100">total</th>
<th width="100">Time</th>
</tr>
- <xsl:for-each select="./module">
+ <xsl:for-each select="./grid">
+ <xsl:if test="@executed_last_time='yes'">
+
<xsl:variable name="total" select="count(.//test)"/>
<xsl:variable name="failureCount" select="count(.//test[@res='KO'])"/>
<xsl:variable name="successCount" select="count(.//test[@res='OK'])"/>
<xsl:call-template name="display-count"><xsl:with-param name="value" select="$notApplicable"/></xsl:call-template>
<td align="right"><xsl:value-of select="format-number(sum(.//test/@exec_time), '0.0')" /></td>
</tr>
+ </xsl:if>
</xsl:for-each>
<!-- Summary Row -->
- <xsl:variable name="GrandTotal" select="count(//test)"/>
+ <xsl:variable name="GrandTotal" select="number(../testbase/@total)"/>
<xsl:variable name="TotalFailure" select="count(//test[@res='KO'])"/>
<xsl:variable name="TotalSuccess" select="count(//test[@res='OK'])"/>
<xsl:variable name="TotalTimeout" select="count(//test[@res='TIMEOUT'])"/>
<br/>
<!-- Show details -->
- <xsl:for-each select="./module">
+ <xsl:for-each select="./grid">
<xsl:sort select="@name" />
- <xsl:sort select="@type" />
+ <xsl:sort select="@session" />
<div style="display:none" name="mod"><xsl:attribute name="id">mod_<xsl:value-of select="../@name"/>.<xsl:value-of select="@name"/></xsl:attribute>
- Tests of module <b><xsl:value-of select="@name"/></b>
+ Tests of grid <b><xsl:value-of select="@name"/></b>
<table width="100%">
<tr bgcolor="#9acd32">
- <th width="100">type</th>
+ <th width="100">session</th>
<th>script</th>
<th width="100">result</th>
<th width="100">time</th>
</tr>
- <xsl:for-each select="./type">
+ <xsl:for-each select="./session">
<xsl:sort select="@name" />
<tr>
</table>
</div>
+ <!--</xsl:if>-->
</xsl:for-each>
- <xsl:for-each select="./module">
- <xsl:for-each select="./type">
+ <xsl:for-each select="./grid">
+ <xsl:for-each select="./session">
<xsl:for-each select="./test">
<div style="display:none" name="text"><xsl:attribute name="id"><xsl:value-of select="@script"/></xsl:attribute>
<PRE><xsl:value-of select="./content"/></PRE>