From f1525316829c9189821c8c88cebfe4e688912e4f Mon Sep 17 00:00:00 2001
From: madiot <madiot@localhost>
Date: Wed, 19 Mar 2008 17:59:31 +0000
Subject: [PATCH] implement DSML functional testing for the DSML gateway. - create a tests suite's external dependency directory as "opends/tests/ext". This holds for now externally built bits used for test suites.   - dsmlService   : in house built STAF service extension to perform DSML result comparaison. - download tomcat webcontainer from ant similarily to other STAF bits - added plumbing to enable the STAF's DSML service and enable the STAF's HTTP service in :  - functional-tests.cfg  - staf-installer.xml - add create a "dsml" testcase suite  - dsml_setup.xml     - create instance of directory server     - installs a Tomcat webcontainer     - deploys DSML gateway  - dsml_test.xml     - use the HTTP service to post DSML SOAP requests (TESTxyz.dat)     - save results as file (TESTxyz.run) and compare the results from reference results (TESTxyz.res) via the dsmlService  - dsml_cleanup.xml     - stop directory and tomcat server     - remove directory and tomcat server - related issue tacker : https://opends.dev.java.net/issues/show_bug.cgi?id=2485 remain to do : ----------------- - SSL  - configure Tomcat to support HTTPS requests to the DSML gateway. - include the dsmlService.jar source inside the code repository's refactored build env and remove the locally built dsmlService.jar from opends/tests/ext - verify potential extra work to be done for windows platform

---
 opends/tests/functional-tests/testcases/runFuncTests.xml |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/runFuncTests.xml b/opends/tests/functional-tests/testcases/runFuncTests.xml
index 8dbfc34..189b905 100755
--- a/opends/tests/functional-tests/testcases/runFuncTests.xml
+++ b/opends/tests/functional-tests/testcases/runFuncTests.xml
@@ -132,6 +132,12 @@
       -->
       
       <import machine="STAF_LOCAL_HOSTNAME"
+              file="'%s/testcases/dsml/dsml.xml' % (TESTS_DIR)" />
+      <!--
+      add keyword 'main_dsml' in run-custom-suites.dat file to run this specific testsuite or run CLI : build run-my-tests
+      -->
+
+      <import machine="STAF_LOCAL_HOSTNAME"
               file="'%s/testcases/sample/sample.xml' % TESTS_DIR" />
       <script>
         # this function return a well-formatted testcase name
@@ -187,11 +193,11 @@
               coverageFiles+='%s/coverage/%s/coverage.ec' % (TMPDIR,group)
           </script>
           <call function="'runCommand'">
-              { 'name'      : 'Generate global coverage xml report',
-                'command'   : 'java',
-                'arguments' : ' -Xms64M -Xmx1024M -cp %s/lib/emma.jar emma report -r xml,html -in %s/coverage.em,%s -Dreport.xml.out.file=%s/coverage/coverage.xml -Dreport.html.out.file=%s/coverage/coverage.html -sp %s/../../../src' % (dsPath,dsPath,coverageFiles,TMPDIR,TMPDIR,TMPDIR),
-                'path'      : TMPDIR
-              }
+            { 'name'      : 'Generate global coverage xml report',
+              'command'   : 'java',
+              'arguments' : ' -Xms64M -Xmx1024M -cp %s/lib/emma.jar emma report -r xml,html -in %s/coverage.em,%s -Dreport.xml.out.file=%s/coverage/coverage.xml -Dreport.html.out.file=%s/coverage/coverage.html -sp %s/../../../src' % (dsPath,dsPath,coverageFiles,TMPDIR,TMPDIR,TMPDIR),
+              'path'      : TMPDIR
+            }
           </call>
           <script>
             from java.io import FileInputStream

--
Gitblit v1.10.0