| opendj-sdk/opends/tests/functional-tests/shared/functions/stafcmd.xml | patch | view | raw | blame | history | |
| opendj-sdk/opends/tests/functional-tests/shared/functions/staxcmd.xml | ●●●●● patch | view | raw | blame | history | |
| opendj-sdk/opends/tests/functional-tests/shared/functions/utils.xml | ●●●●● patch | view | raw | blame | history | |
| opendj-sdk/opends/tests/functional-tests/testcases/runFuncTests.xml | ●●●●● patch | view | raw | blame | history |
opendj-sdk/opends/tests/functional-tests/shared/functions/stafcmd.xml
opendj-sdk/opends/tests/functional-tests/shared/functions/staxcmd.xml
New file @@ -0,0 +1,65 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "stax.dtd"> <!-- ! CDDL HEADER START ! ! The contents of this file are subject to the terms of the ! Common Development and Distribution License, Version 1.0 only ! (the "License"). You may not use this file except in compliance ! with the License. ! ! You can obtain a copy of the license at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE ! or https://OpenDS.dev.java.net/OpenDS.LICENSE. ! See the License for the specific language governing permissions ! and limitations under the License. ! ! When distributing Covered Code, include this CDDL HEADER in each ! file and include the License file at ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, ! add the following below this CDDL HEADER, with the fields enclosed ! by brackets "[]" replaced with your own identifying information: ! Portions Copyright [yyyy] [name of copyright owner] ! ! CDDL HEADER END ! ! Portions Copyright 2007 Sun Microsystems, Inc. ! --> <stax> <function name="queryTestcase"> <function-prolog>Queries the current testcase</function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAXServiceMachine"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname" /> </function-arg-def> </function-map-args> <sequence> <script> STAXRequest='QUERY JOB %s TESTCASE "%s"' % (STAXJobID,STAXCurrentTestcase) </script> <stafcmd name="'STAX Command: Test Case Query for %s' % STAXCurrentTestcase"> <location>'%s' % location</location> <service>'stax'</service> <request>'%s' % STAXRequest</request> </stafcmd> <call function="'checkRC'"> { 'returncode' : RC , 'result' : STAFResult } </call> <return>RC</return> </sequence> </function> </stax> opendj-sdk/opends/tests/functional-tests/shared/functions/utils.xml
@@ -341,6 +341,27 @@ </function-prolog> <function-no-args /> <sequence> <call function="'queryTestcase'" /> <script> if STAFResult.has_key('numPasses'): numPass=int(STAFResult['numPasses']) else: numPass=int(0) if STAFResult.has_key('numFails'): numFail=int(STAFResult['numFails']) else: numFail=int(0) </script> <if expr="numFail > 0"> <message>'## Test Verdict: FAIL ##'</message> <else> <message>'## Test Verdict: PASS ##'</message> </else> </if> <call function="'testCase_EndBanner'" /> </sequence> </function> @@ -370,7 +391,7 @@ </script> <message> '### %s/%s suite preamble ###' % (ThisGroupName,ThisSuiteName) '#### %s/%s suite preamble ####' % (ThisGroupName,ThisSuiteName) </message> </sequence> @@ -397,7 +418,7 @@ </script> <message> '### %s/%s suite postamble ###' % (ThisGroupName,ThisSuiteName) '#### %s/%s suite postamble ####' % (ThisGroupName,ThisSuiteName) </message> <!-- Start time of test suite --> @@ -444,7 +465,7 @@ ThisGroupName=CurrentTestPath['group'] </script> <message>'### %s group preamble ###' % ThisGroupName</message> <message>'##### %s group preamble #####' % ThisGroupName</message> </sequence> </function> @@ -463,7 +484,7 @@ ThisGroupName='unknown-group' </script> <message>'### %s group postamble ###' % ThisGroupName</message> <message>'##### %s group postamble #####' % ThisGroupName</message> <script> if CurrentTestPath.has_key('group'): @@ -541,7 +562,6 @@ testlogfh=open(logfile,'w') </script> <message>'Writing query result'</message> <iterate var="element" in="queryresult"> <script> level=element['level'] opendj-sdk/opends/tests/functional-tests/testcases/runFuncTests.xml
@@ -41,6 +41,9 @@ file="'%s/stafcmd.xml' % (TESTS_FUNCTIONS_DIR)" /> <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" file="'%s/staxcmd.xml' % (TESTS_FUNCTIONS_DIR)" /> <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" file="'%s/dsadm.xml' % (TESTS_FUNCTIONS_DIR)" /> <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"