504N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
671N/A<!--
671N/A ! CDDL HEADER START
671N/A !
671N/A ! The contents of this file are subject to the terms of the
671N/A ! Common Development and Distribution License, Version 1.0 only
671N/A ! (the "License"). You may not use this file except in compliance
671N/A ! with the License.
671N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
671N/A ! See the License for the specific language governing permissions
671N/A ! and limitations under the License.
671N/A !
671N/A ! When distributing Covered Code, include this CDDL HEADER in each
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
671N/A ! Portions Copyright [yyyy] [name of copyright owner]
671N/A !
671N/A ! CDDL HEADER END
671N/A !
4116N/A ! Copyright 2006-2009 Sun Microsystems, Inc.
671N/A ! -->
504N/A<stax>
4618N/A <defaultcall function="main_schema" />
4618N/A <function name="main_schema">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
504N/A
690N/A <sequence>
3973N/A <try>
4618N/A <block name="'schema'">
3973N/A <sequence>
3973N/A <!--- Load the job environment for the test group execution -->
3973N/A <import machine="STAF_LOCAL_HOSTNAME"
3973N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
3973N/A <call function="'loadJobEnvironment'">
3973N/A { 'parent' : STAXParentID }
3973N/A </call>
3973N/A <script>
4618N/A CurrentTestPath['group']='schema'
4618N/A _group=CurrentTestPath['group']
4618N/A
3973N/A </script>
4618N/A <call function="'testGroup_Preamble'" />
3973N/A <script>
4618N/A suiteList = []
3973N/A suiteList.append('rfc')
3973N/A suiteList.append('dynamic')
3973N/A suiteList.append('solaris')
5331N/A suiteList.append('structure')
3973N/A </script>
4618N/A
3973N/A <!-- Run the test suites -->
3973N/A <iterate var="_suite" in="suiteList">
3973N/A <sequence>
3973N/A <try>
3973N/A <sequence>
3973N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/testcases/%s/%s/%s_%s.xml' % (TESTS_DIR,_group,_suite,_group,_suite)"/>
3973N/A <call function="'main_%s_%s' % (_group,_suite)" />
3973N/A </sequence>
3973N/A <catch exception="'STAFException.TestSuite.SetupException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
3973N/A </sequence>
3973N/A </catch>
3973N/A <catch exception="'STAFException.TestSuite.MainException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
3973N/A </sequence>
3973N/A </catch>
3973N/A <catch exception="'STAFException.TestSuite.CleanupException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
3973N/A </sequence>
3973N/A </catch>
3973N/A </try>
3973N/A </sequence>
3973N/A </iterate>
4618N/A
3973N/A </sequence>
3973N/A </block>
4618N/A <catch exception="'STAXException.TestGroupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <finally>
4618N/A <!-- Test Group postamble -->
4618N/A <call function="'testGroup_Postamble'"/>
4618N/A </finally>
3973N/A </try>
690N/A </sequence>
504N/A </function>
5331N/A</stax>