From 29fea4301aece718afd6339e2156b085153b1f77 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 11 Apr 2008 08:56:03 +0000
Subject: [PATCH] add date for operation reporting tag

---
 opends/tests/system-tests/report/result.xsl  |    6 ++++--
 opends/tests/system-tests/phases/log/log.xml |    4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/opends/tests/system-tests/phases/log/log.xml b/opends/tests/system-tests/phases/log/log.xml
index e4cd18e..d7589cb 100755
--- a/opends/tests/system-tests/phases/log/log.xml
+++ b/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>
diff --git a/opends/tests/system-tests/report/result.xsl b/opends/tests/system-tests/report/result.xsl
index 5d0941f..50249af 100755
--- a/opends/tests/system-tests/report/result.xsl
+++ b/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>

--
Gitblit v1.10.0