import-tasks.xml revision 5821
5826N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5826N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5826N/A<!--
5826N/A ! CDDL HEADER START
5826N/A !
5826N/A ! The contents of this file are subject to the terms of the
5826N/A ! Common Development and Distribution License, Version 1.0 only
5826N/A ! (the "License"). You may not use this file except in compliance
5826N/A ! with the License.
5826N/A !
5826N/A ! You can obtain a copy of the license at
5826N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
5826N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5826N/A ! See the License for the specific language governing permissions
5826N/A ! and limitations under the License.
5826N/A !
5826N/A ! When distributing Covered Code, include this CDDL HEADER in each
5826N/A ! file and include the License file at
5826N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5826N/A ! add the following below this CDDL HEADER, with the fields enclosed
5826N/A ! by brackets "[]" replaced with your own identifying information:
5826N/A ! Portions Copyright [yyyy] [name of copyright owner]
5826N/A !
5826N/A ! CDDL HEADER END
5826N/A !
5826N/A ! Copyright 2009 Sun Microsystems, Inc.
5826N/A ! Portions Copyright 2012 ForgeRock AS.
5826N/A ! -->
5826N/A<stax>
5826N/A <defaultcall function="main_import-tasks"/>
5826N/A <function name="main_import-tasks" scope="local">
5826N/A <sequence>
5826N/A <block name="'main_import-tasks'">
5826N/A <try>
5826N/A <sequence>
5826N/A <script>
5826N/A CurrentTestPath['group']='backends'
5826N/A CurrentTestPath['suite']='import-tasks'
5826N/A
5826N/A __group=CurrentTestPath['group']
5826N/A __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
5826N/A </script>
5826N/A
5826N/A <!--- Test Suite information
5826N/A #@TestSuiteName Backend Import Tests
5826N/A #@TestSuitePurpose Verify that the basic import task functionality is working in the Directory Server.
5826N/A #@TestSuiteID Import Task Tests
5826N/A #@TestSuiteGroup Import Task
5826N/A #@TestGroup Backend
5826N/A #@TestScript import.xml
5826N/A #@TestHTMLLink http://opends.dev.java.net/
5826N/A -->
5826N/A
5826N/A <call function="'testSuite_Preamble'"/>
5826N/A
5826N/A <try>
5826N/A <sequence>
5826N/A
5826N/A <call function="'common_setup'">
5826N/A {
5826N/A 'quickStart' : False ,
5826N/A 'startServer' : True ,
5826N/A 'loadData' : False ,
5826N/A 'stopServer' : False
5826N/A }
5826N/A </call>
5826N/A
5826N/A <!-- List of Import of Test Functions -->
5826N/A <script>
5826N/A importList=[]
5826N/A importList.append('import-tasks/import-tasks_tests')
5826N/A </script>
5826N/A
5826N/A <!-- Import the files for this test suite -->
5826N/A <iterate var="__import" in="importList">
5826N/A <import machine="STAF_LOCAL_HOSTNAME"
5826N/A file="'%s/%s.xml' % (__groupdir,__import)"/>
5826N/A </iterate>
5826N/A
5826N/A <!-- List of Test Cases -->
5826N/A <script>
5826N/A testsList=[]
5826N/A testsList.append('backends_import_tasks_001')
5826N/A testsList.append('backends_import_tasks_002')
5826N/A testsList.append('backends_import_tasks_003')
5826N/A testsList.append('backends_import_tasks_004')
5826N/A testsList.append('backends_import_tasks_005')
5826N/A testsList.append('backends_import_tasks_006')
5826N/A testsList.append('backends_import_tasks_007')
5826N/A testsList.append('backends_import_tasks_008')
5826N/A testsList.append('backends_import_tasks_009')
5826N/A testsList.append('backends_import_tasks_010')
5826N/A testsList.append('backends_import_tasks_011')
5826N/A testsList.append('backends_import_tasks_012')
5826N/A testsList.append('backends_import_tasks_013')
5826N/A testsList.append('backends_import_tasks_014')
5826N/A testsList.append('backends_import_tasks_015')
5826N/A testsList.append('backends_import_tasks_016')
5826N/A testsList.append('backends_import_tasks_017')
5826N/A testsList.append('backends_import_tasks_018')
5826N/A testsList.append('backends_import_tasks_019')
5826N/A testsList.append('backends_import_tasks_020')
5826N/A testsList.append('backends_import_tasks_021')
5826N/A testsList.append('backends_import_tasks_022')
5826N/A testsList.append('backends_import_tasks_023')
5826N/A testsList.append('backends_import_tasks_024')
5826N/A testsList.append('backends_import_tasks_025')
5826N/A testsList.append('backends_import_tasks_026')
5826N/A testsList.append('backends_import_tasks_027')
5826N/A testsList.append('backends_import_tasks_028')
5826N/A </script>
5826N/A
5826N/A <!-- Execute the Tests -->
5826N/A <iterate var="__test" in="testsList">
5826N/A <sequence>
5826N/A <call function="'%s' % (__test)" />
5826N/A </sequence>
5826N/A </iterate>
5826N/A
5826N/A </sequence>
5826N/A <catch exception="'STAFException.TestSuite.SetupException'">
5826N/A <sequence>
5826N/A <message log="1" level="'fatal'">
5826N/A 'Setup of test suite failed.'
5826N/A </message>
5826N/A <rethrow/>
5826N/A </sequence>
5826N/A </catch>
5826N/A
5826N/A <finally>
5826N/A <message>'Test Cases Completed.'</message>
5826N/A </finally>
5826N/A
5826N/A </try>
5826N/A
5826N/A </sequence>
5826N/A
5826N/A <finally>
5826N/A <sequence>
5826N/A <!-- Test Suite Cleanup -->
5826N/A <message>'Finally: Global Cleanup.'</message>
5826N/A <try>
5826N/A <call function="'common_cleanup'" />
5826N/A <catch exception="'STAFException'">
5826N/A <sequence>
5826N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5826N/A </sequence>
5826N/A </catch>
5826N/A <finally>
5826N/A <call function="'testSuite_Postamble'"/>
5826N/A </finally>
5826N/A </try>
5826N/A </sequence>
5826N/A </finally>
5826N/A
5826N/A </try>
5826N/A </block>
5826N/A </sequence>
5826N/A </function>
5826N/A</stax>
5826N/A