From 11bc51ab0ec882cd8445dfe59b2bb9159a62e683 Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Mon, 27 Aug 2007 22:29:10 +0000
Subject: [PATCH] 1 - runCommand wraps output lines longer than 100 characters 2 - fix in runTestJob: removed copy of results.html in tmp folder 3 - fix in staf-installer.xml removed references to results.html only rely on my-report.html now 4 - attach my-report.html to the in place of results.html 5 - added knowIssue facility to allow to tag tests failing because of known issues 6 - updated the XSL style sheet to show known issue 7 - added testcase coloring based on status pass/fail/unknown/known 8 - added table of contents title row to make it easier for newcomers to read the report 9 - added known bugs calls in backends group 10- added known bugs calls in security group 11- added known bugs call in logging group 12- fix in utils for default windows environment variables
---
opends/tests/functional-tests/shared/xsl/my-report.xsl | 54 +++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 47 insertions(+), 7 deletions(-)
diff --git a/opends/tests/functional-tests/shared/xsl/my-report.xsl b/opends/tests/functional-tests/shared/xsl/my-report.xsl
index 4eb935b..99198b0 100644
--- a/opends/tests/functional-tests/shared/xsl/my-report.xsl
+++ b/opends/tests/functional-tests/shared/xsl/my-report.xsl
@@ -195,6 +195,16 @@
<!-- table of contents -->
<center><h2>Table of Contents</h2></center>
+ <table width="100%">
+ <tr>
+ <td>Description</td>
+ <td width="5%">Success Rate</td>
+ <td width="5%">Pass</td>
+ <td width="5%">Fail</td>
+ <td width="5%">Inc.</td>
+ <td width="5%">Cov.</td>
+ </tr>
+ </table>
<ul class="myCollapsible">
<xsl:for-each select="$tests">
<xsl:sort select="group" order="ascending"/>
@@ -316,15 +326,45 @@
</tr>
</table>
<ul>
- <xsl:for-each select="$tests[group=$group][suite=$suite][result='fail' or result='inconclusive']">
+ <xsl:for-each select="$tests[group=$group][suite=$suite][result='fail' or result='inconclusive' or result='known']">
<xsl:variable name="name" select="name"/>
<li>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="concat(concat(concat(concat(concat('#',$group),'-'),$suite),'-'),$name)"/>
- </xsl:attribute>
- <xsl:value-of select="name"/>
- </a>
+ <table>
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="result='fail'">
+ <xsl:value-of select="'unacceptable'" />
+ </xsl:when>
+ <xsl:when test="result='known'">
+ <xsl:value-of select="'acceptable'" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'perfect'" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <td>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="concat(concat(concat(concat(concat('#',$group),'-'),$suite),'-'),$name)"/>
+ </xsl:attribute>
+ <xsl:value-of select="name"/>
+ </a>
+ </td>
+ <td width="10%">
+ <xsl:for-each select="./issues">
+ <xsl:variable name="issue" select="issue" />
+ <a target="issue">
+ <xsl:attribute name="href">
+ <xsl:value-of select="concat('https://opends.dev.java.net/issues/show_bug.cgi?id=',$issue)" />
+ </xsl:attribute>
+ <xsl:value-of select="$issue" />
+ </a><br />
+ </xsl:for-each>
+ </td>
+ </tr>
+ </table>
<ul>
<li>
<pre><xsl:value-of select="log" /></pre>
--
Gitblit v1.10.0