From 94191c3f6bfa29d75c519803da8de08bc9e7cc7d Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 04 Apr 2008 14:52:15 +0000
Subject: [PATCH] add client tag management for the reports

---
 opends/tests/system-tests/scenario/sample2/pre_configuration.xml |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/opends/tests/system-tests/scenario/sample2/pre_configuration.xml b/opends/tests/system-tests/scenario/sample2/pre_configuration.xml
index 90db05b..5bec185 100644
--- a/opends/tests/system-tests/scenario/sample2/pre_configuration.xml
+++ b/opends/tests/system-tests/scenario/sample2/pre_configuration.xml
@@ -41,6 +41,11 @@
           suffix class
         </function-arg-description>
       </function-arg-def>
+      <function-arg-def name="scheduler" type="required">
+        <function-arg-description>
+          suffix class
+        </function-arg-description>
+      </function-arg-def>
     </function-map-args>
     
     <sequence>
@@ -74,12 +79,38 @@
           <call function="'writeEndTagInstance'">
           { 'fileFd'    : LOG_MAIN_FD }
           </call>
-          
         </sequence>
       </iterate>
       
       
+      <!-- ================= Display client names    ================ -->
+      <!--== Get the enabled clients list from all modules ==-->
+      <call function="'getEnabledClients'">{'scheduler':scheduler}</call>
+      <script>clients = STAXResult </script>
       
+      <iterate in="clients" var="client">
+        <sequence>
+          <!-- == Write tag for xml report -->
+          <call function="'writeStartTagClient'">
+          {
+            'client' : client,
+            'fileFd' : LOG_MAIN_FD 
+          }
+          </call>
+          
+          <call function="'writeMessage'">
+          { 
+            'fileFd'  : LOG_MAIN_FD,
+            'content' : 'my client is : %s' % client.getName()
+          }
+          </call>
+          
+          <!-- == Write tag for xml report -->
+          <call function="'writeEndTagClient'">
+          { 'fileFd'    : LOG_MAIN_FD }
+          </call>
+        </sequence>
+      </iterate>
       
       <!-- ================= Call postambule ======================= -->
       <call function="'phasePostamble'">

--
Gitblit v1.10.0