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

andrug
12.52.2008 6e9b9e2a522a66edcf27e64a0de4d9ebb6b99f88
QA:System Test: add comments.txt file into the report
2 files modified
36 ■■■■■ changed files
opends/tests/system-tests/phases/log/log.xml 18 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/report/result.xsl 18 ●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/log/log.xml
@@ -144,7 +144,23 @@
        writeSummaryTag(PHASE_POST_CONFIGURATION)
        writeSummaryTag(PHASE_SCHEDULER)
        writeSummaryTag(PHASE_VERDICT)
      </script>
      <!-- write link to comments.txt file -->
      <script>
        commentsFile  = 'comments.txt'
        commentsFilePath = '%s/%s' % (LOG_DIR,commentsFile)
        commentsFileFd = open(commentsFilePath,'w')
        commentsFileFd.write('Additional comments...\n')
        commentsFileFd.close()
      </script>
      <call function="'writeMessage'">
      {
        'content' : 'Additional comments : %s' % commentsFile,
        'xlink'   : commentsFile,
        'fileFd'  : fileFd
      }
      </call>
      <script>
        fileFd.write('&lt;/summary&gt;\n')
      </script>
    </sequence>
opends/tests/system-tests/report/result.xsl
@@ -164,10 +164,24 @@
    
    <table id="summaryTable">
      <xsl:apply-templates select="phaseSummmary" />
      <xsl:apply-templates select="message" />
    </table>
  </p>
 </xsl:template>
</xsl:template>
<!-- ============= message node =============== -->
<xsl:template match="message">
  <xsl:choose>
    <xsl:when test="@xlink:href">
      <a href="{@xlink:href}"><xsl:value-of select="." /></a>
    </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="." />
      </xsl:otherwise>
    </xsl:choose>
   <br/>
</xsl:template>
<!-- ================= Display scenario informations ============ -->
<xsl:template match="scenario">
  <b>Scenario name</b> : <xsl:value-of select="normalize-space(@name)"/> <br/>