<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; }
background: #bbbbbb;
}
span.zero { color: #A0A0A0; }
- a.node { color:#0000FF; text-decoration: none; visited: #FF0000; }
+ a.node { color: #0000FF }
</style>
<script language="JavaScript"><![CDATA[
<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/grid">
- <b>grid <xsl:value-of select="@name" /></b><br/><br/>
+ <xsl:for-each select="tests/testbase">
+ <b>test base <xsl:value-of select="@name" /></b><br/><br/>
<a name="test"/>
- <xsl:apply-templates select="." mode="test-grid" />
+ <xsl:apply-templates select="." mode="test-base" />
</xsl:for-each>
</xsl:template>
-<xsl:template match="grid" mode="test-grid">
+<xsl:template match="testbase" mode="test-base">
<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>
<tr>
<td align="left">
<xsl:attribute name="class"><xsl:value-of select="@res" /></xsl:attribute>
- <a href="#content">
+ <a href="#content" class="node">
<xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>')</xsl:attribute>
<xsl:attribute name="title">Click to see the script content</xsl:attribute>
<xsl:value-of select="@script" />
</a>
 
- <a href="#content">
+ <a href="#content" class="node">
<xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>log')</xsl:attribute>
<xsl:attribute name="title">Click to see the execution log</xsl:attribute>
log
<xsl:otherwise>
<tr>
<td align="left">
- <a href="#content">
+ <a href="#content" class="node">
<xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>')</xsl:attribute>
<xsl:attribute name="title">Click to see the script content</xsl:attribute>
<xsl:value-of select="@script" />
</a>
 
- <a href="#content">
+ <a href="#content" class="node">
<xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>log')</xsl:attribute>
<xsl:attribute name="title">Click to see the execution log</xsl:attribute>
log
</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>