<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "/shared/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 legal-notices/CDDLv1_0.txt
! or http://forgerock.org/license/CDDLv1.0.html.
! 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 legal-notices/CDDLv1_0.txt.
! 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
!
! Copyright 2011 ForgeRock AS.
! -->
<stax>
<defaultcall function="main_pta_basic"/>
<function name="main_pta_basic" scope="local">
<sequence>
<block name="'main_pta_basic'">
<try>
<sequence>
<script>
CurrentTestPath['group']='pta'
CurrentTestPath['suite']='basic'
__group=CurrentTestPath['group']
__groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
</script>
<!--- Test Suite information
#@TestSuiteName Basic pta suite
#@TestSuitePurpose Verify basic pta
#@TestSuiteID Suite
#@TestSuiteGroup Basic
#@TestGroup Basic
#@TestScript pta.xml
#@TestHTMLLink http://www.forgerock.org/
-->
<call function="'testSuite_Preamble'"/>
<try>
<sequence>
<!-- PTA setup -->
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/pta/pta_setup.xml' % (TESTS_DIR)"/>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/pta/basic/pta_basic_postamble.xml' % (TESTS_DIR)"/>
<call function="'pta_setup'">
{ 'topologyFile' : '%s/3server_topology.txt' % REPLICATION_CONFIG_DIR }
</call>
<!-- List of Import of Test Functions -->
<script>
importList=[]
importList.append('basic/pta_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 pta tests -->
<!-- List of Test Cases -->
<script>
testsList=[]
testsList.append('basic_pta_001')
testsList.append('basic_pta_002')
testsList.append('basic_pta_003')
testsList.append('basic_pta_004')
testsList.append('basic_pta_005')
testsList.append('basic_pta_006')
testsList.append('basic_pta_007')
testsList.append('basic_pta_008')
testsList.append('basic_pta_009')
testsList.append('basic_pta_010')
testsList.append('basic_pta_011')
testsList.append('basic_pta_012')
testsList.append('basic_pta_013')
testsList.append('basic_pta_014')
testsList.append('basic_pta_015')
</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 PTA Cleanup.'</message>
<try>
<sequence>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/pta/pta_cleanup.xml' % (TESTS_DIR)"/>
<call function="'pta_cleanup'" />
</sequence>
<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>