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