<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">
</tr>
<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'])"/>
</table>
</div>
+ <!--</xsl:if>-->
</xsl:for-each>
<xsl:for-each select="./grid">