5541N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5546N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5541N/A<!--
5541N/A ! CDDL HEADER START
5541N/A !
5541N/A ! The contents of this file are subject to the terms of the
5541N/A ! Common Development and Distribution License, Version 1.0 only
5541N/A ! (the "License"). You may not use this file except in compliance
5541N/A ! with the License.
5541N/A !
5541N/A ! You can obtain a copy of the license at
5541N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
5541N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5541N/A ! See the License for the specific language governing permissions
5541N/A ! and limitations under the License.
5541N/A !
5541N/A ! When distributing Covered Code, include this CDDL HEADER in each
5541N/A ! file and include the License file at
5541N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
5541N/A ! add the following below this CDDL HEADER, with the fields enclosed
5541N/A ! by brackets "[]" replaced with your own identifying information:
5541N/A ! Portions Copyright [yyyy] [name of copyright owner]
5541N/A !
5541N/A ! CDDL HEADER END
5541N/A !
5541N/A ! Copyright 2011 ForgeRock AS.
5541N/A ! -->
5541N/A<stax>
5541N/A <defaultcall function="main_pta_basic"/>
5541N/A <function name="main_pta_basic" scope="local">
5541N/A <sequence>
5541N/A <block name="'main_pta_basic'">
5541N/A <try>
5541N/A <sequence>
5541N/A <script>
5541N/A CurrentTestPath['group']='pta'
5541N/A CurrentTestPath['suite']='basic'
5541N/A
5541N/A __group=CurrentTestPath['group']
5541N/A __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
5541N/A </script>
5541N/A
5541N/A <!--- Test Suite information
5541N/A #@TestSuiteName Basic pta suite
5541N/A #@TestSuitePurpose Verify basic pta
5541N/A #@TestSuiteID Suite
5541N/A #@TestSuiteGroup Basic
5541N/A #@TestGroup Basic
5541N/A #@TestScript pta.xml
5541N/A #@TestHTMLLink http://www.forgerock.org/
5541N/A -->
5541N/A <call function="'testSuite_Preamble'"/>
5541N/A
5541N/A <try>
5541N/A <sequence>
5541N/A
5541N/A <!-- PTA setup -->
5541N/A <import machine="STAF_LOCAL_HOSTNAME"
5541N/A file="'%s/testcases/pta/pta_setup.xml' % (TESTS_DIR)"/>
5560N/A <import machine="STAF_LOCAL_HOSTNAME"
5562N/A file="'%s/testcases/pta/basic/pta_basic_postamble.xml' % (TESTS_DIR)"/>
5541N/A <call function="'pta_setup'">
5541N/A { 'topologyFile' : '%s/3server_topology.txt' % REPLICATION_CONFIG_DIR }
5541N/A </call>
5541N/A
5541N/A <!-- List of Import of Test Functions -->
5541N/A <script>
5541N/A importList=[]
5541N/A importList.append('basic/pta_basic_tests')
5541N/A </script>
5541N/A
5541N/A <!-- Import the files for this test suite -->
5541N/A <iterate var="__import" in="importList">
5541N/A <import machine="STAF_LOCAL_HOSTNAME"
5541N/A file="'%s/%s.xml' % (__groupdir,__import)"/>
5541N/A </iterate>
5541N/A
5541N/A <!-- Specific to basic pta tests -->
5541N/A
5541N/A <!-- List of Test Cases -->
5541N/A <script>
5541N/A testsList=[]
5548N/A testsList.append('basic_pta_001')
5546N/A testsList.append('basic_pta_002')
5541N/A testsList.append('basic_pta_003')
5548N/A testsList.append('basic_pta_004')
5551N/A testsList.append('basic_pta_005')
5551N/A testsList.append('basic_pta_006')
5560N/A testsList.append('basic_pta_007')
5560N/A testsList.append('basic_pta_008')
5562N/A testsList.append('basic_pta_009')
5562N/A testsList.append('basic_pta_010')
5562N/A testsList.append('basic_pta_011')
5562N/A testsList.append('basic_pta_012')
5571N/A testsList.append('basic_pta_013')
5908N/A testsList.append('basic_pta_014')
5908N/A testsList.append('basic_pta_015')
5541N/A </script>
5541N/A
5541N/A <!-- Execute the Tests -->
5541N/A <iterate var="__test" in="testsList">
5541N/A <sequence>
5541N/A <call function="'%s' % (__test)" />
5541N/A </sequence>
5541N/A </iterate>
5541N/A
5541N/A </sequence>
5541N/A <catch exception="'STAFException.TestSuite.SetupException'">
5541N/A <sequence>
5541N/A <message log="1" level="'fatal'">
5541N/A 'Setup of test suite failed.'
5541N/A </message>
5541N/A <rethrow/>
5541N/A </sequence>
5541N/A </catch>
5541N/A
5541N/A <finally>
5541N/A <message>'Test Cases Completed.'</message>
5541N/A </finally>
5541N/A
5541N/A </try>
5541N/A
5541N/A </sequence>
5541N/A
5541N/A <finally>
5541N/A <sequence>
5541N/A <!-- Test Suite Cleanup -->
5541N/A <message>'Finally: Global PTA Cleanup.'</message>
5541N/A <try>
5541N/A <sequence>
5541N/A <import machine="STAF_LOCAL_HOSTNAME"
5541N/A file="'%s/testcases/pta/pta_cleanup.xml' % (TESTS_DIR)"/>
5541N/A <call function="'pta_cleanup'" />
5541N/A </sequence>
5541N/A <catch exception="'STAFException'">
5541N/A <sequence>
5541N/A <message log="1" level="'fatal'">
5541N/A 'Cleanup of test suite failed.'
5541N/A </message>
5541N/A </sequence>
5541N/A </catch>
5541N/A <finally>
5541N/A <call function="'testSuite_Postamble'"/>
5541N/A </finally>
5541N/A </try>
5541N/A </sequence>
5541N/A </finally>
5541N/A
5541N/A </try>
5541N/A </block>
5541N/A </sequence>
5541N/A </function>
5541N/A</stax>