1691N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
1691N/A<!--
1691N/A ! CDDL HEADER START
1691N/A !
1691N/A ! The contents of this file are subject to the terms of the
1691N/A ! Common Development and Distribution License, Version 1.0 only
1691N/A ! (the "License"). You may not use this file except in compliance
1691N/A ! with the License.
1691N/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.
1691N/A ! See the License for the specific language governing permissions
1691N/A ! and limitations under the License.
1691N/A !
6982N/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:
1691N/A ! Portions Copyright [yyyy] [name of copyright owner]
1691N/A !
1691N/A ! CDDL HEADER END
1691N/A !
4618N/A ! Copyright 2007-2009 Sun Microsystems, Inc.
1691N/A ! -->
1691N/A<stax>
4618N/A <defaultcall function="main_groups" />
1691N/A <function name="main_groups">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
1691N/A
1691N/A <sequence>
4618N/A <try>
4618N/A <block name="'groups'">
4618N/A <sequence>
4618N/A <!--- Load the job environment for the test group execution -->
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
4618N/A <call function="'loadJobEnvironment'">
4618N/A { 'parent' : STAXParentID }
4618N/A </call>
4618N/A <script>
4618N/A CurrentTestPath['group']='groups'
4618N/A _group=CurrentTestPath['group']
4618N/A </script>
4618N/A <call function="'testGroup_Preamble'" />
4618N/A <script>
4618N/A suiteList = []
4618N/A suiteList.append('static_uniquemember')
4618N/A suiteList.append('static_member')
4618N/A suiteList.append('dynamic')
4618N/A suiteList.append('virtual_static')
4618N/A </script>
4618N/A
4618N/A <!-- Run the test suites -->
4618N/A <iterate var="_suite" in="suiteList">
4618N/A <sequence>
4618N/A <try>
4618N/A <sequence>
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/testcases/%s/group_%s.xml' % (TESTS_DIR,_group,_suite)"/>
4618N/A <call function="'%s' % _suite" />
4618N/A </sequence>
4618N/A <catch exception="'STAFException.TestSuite.SetupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.MainException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.CleanupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A </try>
4618N/A </sequence>
4618N/A </iterate>
4618N/A
4618N/A </sequence>
4618N/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 -->
1691N/A <call function="'testGroup_Postamble'"/>
4618N/A </finally>
4618N/A </try>
1691N/A </sequence>
1691N/A </function>
4618N/A</stax>