Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit d6caf4e

Browse files
naman223arindam-bandyopadhyay
authored andcommitted
Fixing 21965 # Reporting for Deployment Tests. (#21966)
1 parent 4dd471c commit d6caf4e

File tree

1 file changed

+23
-7
lines changed
  • appserver/tests/appserv-tests/devtests/deployment/config

1 file changed

+23
-7
lines changed

appserver/tests/appserv-tests/devtests/deployment/config/convert.xsl

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,27 @@
4141
-->
4242

4343
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
44-
<xsl:template match="/">
45-
<xsl:for-each select="tests/test">
46-
[<xsl:value-of select="result/@status"/>] <xsl:value-of select="@name"/> : <xsl:value-of select="@description"/>
47-
</xsl:for-each>
48-
49-
</xsl:template>
50-
44+
<xsl:template match="/">
45+
<table border="1">
46+
<tr bgcolor="#9acd32">
47+
<th>Status</th>
48+
<th>Test</th>
49+
<th>Description</th>
50+
</tr>
51+
<xsl:for-each select="tests/test">
52+
<tr>
53+
<xsl:choose>
54+
<xsl:when test="result/@status = 'PASSED'">
55+
<td bgcolor="green">[PASSED] </td>
56+
</xsl:when>
57+
<xsl:otherwise>
58+
<td bgcolor="red">[FAILED] </td>
59+
</xsl:otherwise>
60+
</xsl:choose>
61+
<td><xsl:value-of select="@name"/> </td>
62+
<td><xsl:value-of select="@description"/></td>
63+
</tr>
64+
</xsl:for-each>
65+
</table>
66+
</xsl:template>
5167
</xsl:stylesheet>

0 commit comments

Comments
 (0)