Skip to main content

Source code file content

Revision: 114

» Project Revision History

» Checkout URL

soatestingutilities / ConsolidatedTestEnv / report2text.xsl

Size: 1387 bytes, 1 line
<?xml version="1.0" encoding="windows-1252" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text" indent="no"/>
  <xsl:template match="/">
Test Report, <xsl:value-of select="/test-report/@date"/>
========================================
Total number of tests: <xsl:value-of select="count(/test-report/test)"/>
Total number of success: <xsl:value-of select="count(/test-report/test[testsuite/@errors = '0' and testsuite/@failures = '0'])"/>
Total number of failures: <xsl:value-of select="count(/test-report/test[testsuite/@errors= '1' or testsuite/@failures = '1'])"/>
========================================
        <xsl:for-each select="/test-report/test">
========================================
Test <xsl:value-of select="./testsuite/@name"/>
          <xsl:choose>
            <xsl:when test="./testsuite/@errors = '0' and ./testsuite/@failures = '0'">
==> Success
            </xsl:when>
            <xsl:otherwise>
==> Failed
========================================
Error message:
                  <xsl:value-of select="./testsuite/system-err"/>
            </xsl:otherwise>
          </xsl:choose>
Test Output:
            <xsl:value-of select="./testsuite/system-out"/>
========================================
        </xsl:for-each>
Proudly created by the A-Team
  </xsl:template>
</xsl:stylesheet>
 
 
Close
loading
Please Confirm
Close