From 1d86ae4d71b5d7e7b371844d776dc60cc10a7f33 Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Wed, 29 Aug 2007 02:56:33 +0000
Subject: [PATCH] 1. added the ability to save the server error and access log.\n2. the testcases are now timed down to the second. subsecond timing would have been too platform(C library actually) dependent in python\n3. adapted the XSL to report the number of known issues\n4. Still need to fix coverage % XSL template\n5. other minor XSL fixes\n6. added windows new line support in environment.xml

---
 opends/tests/functional-tests/testcases/sample/sample.xml |   43 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/sample/sample.xml b/opends/tests/functional-tests/testcases/sample/sample.xml
index 7a718b5..8f01496 100644
--- a/opends/tests/functional-tests/testcases/sample/sample.xml
+++ b/opends/tests/functional-tests/testcases/sample/sample.xml
@@ -55,7 +55,7 @@
              -->
             <call function="setupStep" />
           </iterate>
-          <iterate in="['passing_test']" var="testStep">
+          <iterate in="['sample_test','knownIssue_test','passing_test','failing_test']" var="testStep">
             <!-- the sequence tag is superfluous here since there is only a 
                  single instruction to execute within the iterate block 
              -->
@@ -126,6 +126,47 @@
       </sequence>
     </block>
   </function>
+
+  <!-- the test -->
+  <function name="knownIssue_test">
+    <!---
+      Place test-specific test information here.
+      The tag, TestMarker, must be the same as the tag, TestSuiteName.
+      #@TestMarker                Sample
+      #@TestName                  sample_test
+      #@TestIssue                 xyz
+      #@TestPurpose               Illustrate how to issue a query on OpenDS
+      #@TestPreamble              none
+      #@TestStep                  Fetch all the entries in the server
+      #@TestPostamble             none
+      #@TestResult                Success if OpenDS returns 0
+    -->
+    <block name="'knownIssue_test'">
+      <sequence>
+        <script>
+          CurrentTestPath['suite']= 'search'
+        </script>
+        <testcase name="getTestCaseName(STAXCurrentBlock)">
+          <sequence>
+            <call function="'testCase_Preamble'" />
+            <!-- search for an entry that does not exist -->
+            <call function="'SearchObject'">
+            { 'dsInstanceHost'   : DIRECTORY_INSTANCE_HOST ,
+              'dsInstancePort'   : DIRECTORY_INSTANCE_PORT ,
+              'dsInstanceDn'     : DIRECTORY_INSTANCE_DN   ,
+              'dsInstancePswd'   : DIRECTORY_INSTANCE_PSWD ,
+              'dsBaseDN'         : DIRECTORY_INSTANCE_SFX  ,
+              'dsFilter'         : 'uid=wronguid'         }
+            </call>
+            <script>
+              knownIssue(828)
+            </script>
+            <call function="'testCase_Postamble'" />
+          </sequence>
+        </testcase>
+      </sequence>
+    </block>
+  </function>
   
   <!-- the dummy failing test -->
   <function name="failing_test">

--
Gitblit v1.10.0