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

andrug
11.56.2008 29fea4301aece718afd6339e2156b085153b1f77
add date for operation reporting tag
2 files modified
10 ■■■■ changed files
opends/tests/system-tests/phases/log/log.xml 4 ●●● patch | view | raw | blame | history
opends/tests/system-tests/report/result.xsl 6 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/log/log.xml
@@ -602,7 +602,9 @@
    <sequence>
      <if expr="fileFd != NO_FILE">
        <script>
          fileFd.write('&lt;operation name=\"%s\"&gt;\n' % tagName)
          date = strftime("%Y%m%d@%H:%M:%S",localtime())
          str = '&lt;operation name=\"%s\" date=\"%s\"&gt;\n'% (tagName,date)
          fileFd.write(str)
        </script>
      </if>
    </sequence>
opends/tests/system-tests/report/result.xsl
@@ -154,7 +154,7 @@
<xsl:template match="scenario">
  <b>Scenario name</b> : <xsl:value-of select="normalize-space(@name)"/> <br/>
  <b>Description</b> : <xsl:value-of 
                            select="normalize-space(local-name(.))"/> <br/>
                            select="normalize-space(.)"/> <br/>
  <b>Duration</b> : <xsl:value-of 
                            select="normalize-space(@duration)"/> <br/>
  <br/>
@@ -636,8 +636,10 @@
<!-- ================= Manage operation node ================ -->
<xsl:template name="displayOperation">
  <xsl:variable name="opName" select="normalize-space(@name)"/>
  <xsl:variable name="opDate" select="normalize-space(@date)"/>
  <li>
    <b><xsl:value-of select="$opName" /> </b><br/>
    <b><xsl:value-of select="$opName"/></b>
       <i>@ <xsl:value-of select="$opDate"/></i><br/>
    <xsl:call-template name="parseChildPhase" />
  </li>
</xsl:template>