operations_basic.xml revision 5821
9512fe850e98fdd448c638ca63fdd92a8a510255ahl<?xml version="1.0" encoding="UTF-8" standalone="no"?>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
9512fe850e98fdd448c638ca63fdd92a8a510255ahl<!--
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl !
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! Common Development and Distribution License, Version 1.0 only
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! (the "License"). You may not use this file except in compliance
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl !
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! You can obtain a copy of the license at
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! or http://forgerock.org/license/CDDLv1.0.html.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl !
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! file and include the License file at
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! add the following below this CDDL HEADER, with the fields enclosed
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! by brackets "[]" replaced with your own identifying information:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl !
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl !
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! Copyright 2011-2012 ForgeRock AS.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ! -->
9512fe850e98fdd448c638ca63fdd92a8a510255ahl<stax>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <defaultcall function="main_operations_basic"/>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <function name="main_operations_basic" scope="local">
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <sequence>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <block name="'main_operations_basic'">
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <try>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <sequence>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl <script>
9512fe850e98fdd448c638ca63fdd92a8a510255ahl CurrentTestPath['group']='operations'
CurrentTestPath['suite']='basic'
__group=CurrentTestPath['group']
__groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
</script>
<!--- Test Suite information
#@TestSuiteName Basic operations suite
#@TestSuitePurpose Verify basic operations
#@TestSuiteID Suite
#@TestSuiteGroup Basic
#@TestGroup Basic
#@TestScript operations.xml
#@TestHTMLLink http://www.forgerock.org/
-->
<call function="'testSuite_Preamble'"/>
<try>
<sequence>
<call function="'common_setup'">
{
'quickStart' : False ,
'startServer' : False ,
'loadData' : True ,
'ldifFile' : '%s/operations/ldapauthusers.ldif' % remote.data ,
'generateLDIF' : True ,
'ldifTemplate' : '%s/operations/ldapauthusers.template' % remote.data ,
'stopServer' : False
}
</call>
<!-- List of Import of Test Functions -->
<script>
importList=[]
importList.append('basic/operations_basic_tests')
</script>
<!-- Import the files for this test suite -->
<iterate var="__import" in="importList">
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/%s.xml' % (__groupdir,__import)"/>
</iterate>
<!-- Specific to basic operations tests -->
<!-- List of Test Cases -->
<script>
testsList=[]
testsList.append('basic_operations_001')
testsList.append('basic_operations_002')
testsList.append('basic_operations_003')
</script>
<!-- Execute the Tests -->
<iterate var="__test" in="testsList">
<sequence>
<call function="'%s' % (__test)" />
</sequence>
</iterate>
</sequence>
<catch exception="'STAFException.TestSuite.SetupException'">
<sequence>
<message log="1" level="'fatal'">
'Setup of test suite failed.'
</message>
<rethrow/>
</sequence>
</catch>
<finally>
<message>'Test Cases Completed.'</message>
</finally>
</try>
</sequence>
<finally>
<sequence>
<!-- Test Suite Cleanup -->
<message>'Finally: Global Cleanup.'</message>
<try>
<call function="'common_cleanup'" />
<catch exception="'STAFException'">
<sequence>
<message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
</sequence>
</catch>
<finally>
<call function="'testSuite_Postamble'"/>
</finally>
</try>
</sequence>
</finally>
</try>
</block>
</sequence>
</function>
</stax>