mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

andrug
26.45.2008 a97801e79ba87a0a0e24ad5c33a5d0290bcd9708
add a global percentage result
2 files modified
26 ■■■■■ changed files
opends/tests/system-tests/phases/main_run.xml 8 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/report/result.xsl 18 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/main_run.xml
@@ -425,6 +425,14 @@
        }
      </call>
      
      <!-- ====== Write global result for system test run ============ -->
      <script>
        str = '&lt;globalResult percentage="%s"/&gt;\n' % \
              PHASE_VERDICT.getPercentage()
        LOG_MAIN_FD.write(str)
      </script>
      <!-- ============ POSTAMBLE ==================================== -->
      <call function="'mainPostamble'">
        {
opends/tests/system-tests/report/result.xsl
@@ -51,7 +51,23 @@
      }
    </script>
    
    <h1>System Test Report</h1>
    <h1>
      System Test Report <br/>
      <xsl:variable name="globalPerc" select="globalResult/@percentage"/>
        <xsl:choose>
          <xsl:when test="$globalPerc > '90'">
            <b>
              <span class="pass"><xsl:value-of select="$globalPerc"/>%</span>
            </b>
          </xsl:when>
          <xsl:otherwise>
            <b>
              <span class="fail"><xsl:value-of select="$globalPerc"/>%</span>
            </b>
          </xsl:otherwise>
        </xsl:choose>
    </h1>
    <xsl:apply-templates select="summary" />
    <xsl:apply-templates select="topology"/>
    <xsl:apply-templates select="phase" />