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