From cddf7c47847bd8c2ef0d00700b616abcae431de0 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Fri, 23 Feb 2007 10:28:22 +0000
Subject: [PATCH] Issue 1076 store test logs per testcase

---
 opends/tests/functional-tests/testcases/security/startTLS/security_startTLS.xml |  157 ++++++++++++++++++++++++++-------------------------
 1 files changed, 80 insertions(+), 77 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/security/startTLS/security_startTLS.xml b/opends/tests/functional-tests/testcases/security/startTLS/security_startTLS.xml
index fbf2e07..641c27f 100755
--- a/opends/tests/functional-tests/testcases/security/startTLS/security_startTLS.xml
+++ b/opends/tests/functional-tests/testcases/security/startTLS/security_startTLS.xml
@@ -31,88 +31,91 @@
 
   <function name="security_startTLS">
 
-      <sequence>
+    <sequence>
 
-        <call function="'testSuite_Preamble'"/>
+      <script>
+        CurrentTestPath['suite']='startTLS'
+      </script>
+      
+      <call function="'testSuite_Preamble'"/>
         
-<parallel>
-    <block name="'Block DS Process Active'">
+      <parallel>
+      
+        <block name="'Block DS Process Active'">
+    
+          <!--- Start DS -->
+          <sequence>
+            <message>
+               'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
+            </message>
+    
+            <!--- Start DS -->
+            <call function="'startDS'">
+              { 'dsbinpath' : '%s' % (OPENDS_BINPATH) }
+            </call>
+    
+            <call function="'checkRC'">
+                { 'returncode' : RC ,
+                  'result'     : STAXResult }
+            </call>
+    
+          </sequence>
+    
+         <!--- End Block DS Process Active -->
+         </block>
+    
+         <block name="'Block Clients'">
+    
+          <sequence>
+    
+            <!--- Check that DS started -->
+            <call function="'isAlive'">
+              { 'noOfLoops'        : 5 ,
+                'noOfMilliSeconds' : 2000 }
+            </call>
+    
+            <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
+              file="'%s/testcases/security/startTLS/security_setup_startTLS.xml' % (TESTS_DIR)"/>
+            <call function="'setup_startTLS'" />
+    
+            <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
+              file="'%s/testcases/security/startTLS/security_bob_startTLS.xml' % (TESTS_DIR)"/>
+            <call function="'bob_startTLS'" />
+    
+            <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
+              file="'%s/testcases/security/startTLS/security_force_pwd_change_startTLS.xml' % (TESTS_DIR)"/>
+            <call function="'force_pwd_change_startTLS'" />
+    
+            <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
+              file="'%s/testcases/security/startTLS/security_teardown_startTLS.xml' % (TESTS_DIR)"/>
+            <call function="'teardown_startTLS'" />
+    
+            <!--- Stop DS -->
+            <sequence>
+              <message>
+                 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
+              </message>
+    
+              <call function="'stopDS'">
+                { 'dsInstancePort' : '%s' % (DIRECTORY_INSTANCE_PORT) }
+              </call>
+    
+              <call function="'checkRC'">
+                  { 'returncode' : RC ,
+                    'result'     : STAXResult }
+              </call>
+            </sequence>
+    
+          </sequence>
+    
+        <!--- End Block Clients -->
+        </block>
 
-      <!--- Start DS -->
-      <sequence>
-        <message>
-           'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
-        </message>
+      </parallel>
 
-        <!--- Start DS -->
-        <call function="'startDS'">
-          { 'dsbinpath' : '%s' % (OPENDS_BINPATH) }
-        </call>
-
-        <call function="'checkRC'">
-            { 'returncode' : RC ,
-              'result'     : STAXResult }
-        </call>
-
-      </sequence>
-
-     <!--- End Block DS Process Active -->
-     </block>
-
-     <block name="'Block Clients'">
-
-      <sequence>
-
-        <!--- Check that DS started -->
-        <call function="'isAlive'">
-          { 'noOfLoops'        : 5 ,
-            'noOfMilliSeconds' : 2000 }
-        </call>
-
-        <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
-          file="'%s/testcases/security/startTLS/security_setup_startTLS.xml' % (TESTS_DIR)"/>
-        <call function="'setup_startTLS'" />
-
-        <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
-          file="'%s/testcases/security/startTLS/security_bob_startTLS.xml' % (TESTS_DIR)"/>
-        <call function="'bob_startTLS'" />
-
-        <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
-          file="'%s/testcases/security/startTLS/security_force_pwd_change_startTLS.xml' % (TESTS_DIR)"/>
-        <call function="'force_pwd_change_startTLS'" />
-
-        <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
-          file="'%s/testcases/security/startTLS/security_teardown_startTLS.xml' % (TESTS_DIR)"/>
-        <call function="'teardown_startTLS'" />
-
-        <!--- Stop DS -->
-        <sequence>
-          <message>
-             'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
-          </message>
-
-          <call function="'stopDS'">
-            { 'dsInstancePort' : '%s' % (DIRECTORY_INSTANCE_PORT) }
-          </call>
-
-          <call function="'checkRC'">
-              { 'returncode' : RC ,
-                'result'     : STAXResult }
-          </call>
-        </sequence>
-
-        <return>RC</return>
-
-        </sequence>
-
-       <!--- End Block Clients -->
-       </block>
-
-</parallel>
-
-        <call function="'testSuite_Postamble'"/>
+      <call function="'testSuite_Postamble'"/>
         
-     </sequence>
+    </sequence>
 
   </function>
 

--
Gitblit v1.10.0