<!--
  JBoss, Home of Professional Open Source
  Copyright 2007, Red Hat Middleware LLC, and individual contributors
  as indicated by the @author tags.
  See the copyright.txt in the distribution for a
  full listing of individual contributors.
  This copyrighted material is made available to anyone wishing to use,
  modify, copy, or redistribute it subject to the terms and conditions
  of the GNU Lesser General Public License, v. 2.1.
  This program is distributed in the hope that it will be useful, but WITHOUT A
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  You should have received a copy of the GNU Lesser General Public License,
  v.2.1 along with this distribution; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  MA  02110-1301, USA.

  (C) 2005-2006,
  @author JBoss Inc.
-->
<!-- $Id: atsqa-crashrecovery12-qa-testdefs.xml,v 1.4 2004/11/03 09:49:05 kconner Exp $ -->
<test_set>
	<default_timeout value="240"/>
	<description>Crash Recovery Tests 12</description>

	<test_group name="CrashRecovery12">
		<task_declaration>
			<task id="com.arjuna.ats.arjuna.recovery.RecoveryManager"
				  classname="com.arjuna.ats.arjuna.recovery.RecoveryManager" runner="JavaTaskRunner"
				  type="expect_ready"/>

			<task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01"
				  classname="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runner="JavaTaskRunner"
				  type="expect_pass_fail"/>

			<task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01"
				  classname="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runner="JavaTaskRunner"
				  type="expect_pass_fail"/>

			<task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01"
				  classname="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runner="JavaTaskRunner"
				  type="expect_pass_fail"/>

			<task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" classname="org.jboss.jbossts.qa.Utils.EmptyObjectStore"
				  runner="JavaTaskRunner" type="expect_pass_fail"/>

		</task_declaration>

		<test_declaration id="CrashRecovery12_Test01" descriptive_name="CrashRecovery12 Test01" author="JDC">
			<description>No crash test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_01.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>nocrash</param>
					<param>CR12_01.log</param>
				</start_task>
				<wait_for_task runtime_id="client0"/>
				<terminate_task runtime_id="server0"/>
			</action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test02" descriptive_name="CrashRecovery12 Test02" author="JDC">
			<description>Crash in prepare test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_02.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>prepare</param>
					<param>CR12_02.log</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_02.log</param>
					<param>no</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server0"/>
                <terminate_task runtime_id="client0"/>
            </action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test03" descriptive_name="CrashRecovery12 Test03" author="JDC">
			<description>Crash in commit test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_03.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>commit</param>
					<param>CR12_03.log</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_03.log</param>
					<param>yes</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server0"/>
                <terminate_task runtime_id="client0"/>
			</action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test04" descriptive_name="CrashRecovery12 Test04" author="JDC">
			<description>Crash in rollback test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_04.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>rollback</param>
					<param>CR12_04.log</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_04.log</param>
					<param>no</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server0"/>
                <terminate_task runtime_id="client0"/>
			</action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test05" descriptive_name="CrashRecovery12 Test05" author="JDC">
			<description>Crash in prepare and crash RM test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_05.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>prepare</param>
					<param>CR12_05.log</param>
				</start_task>
				<wait_for_task runtime_id="client0"/>
				<terminate_task runtime_id="server0"/>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server1" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_05.log</param>
					<param>no</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server1"/>
			</action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test06" descriptive_name="CrashRecovery12 Test06" author="JDC">
			<description>Crash in commit and crash RM test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_06.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>commit</param>
					<param>CR12_06.log</param>
				</start_task>
				<wait_for_task runtime_id="client0"/>
				<terminate_task runtime_id="server0"/>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server1" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_06.log</param>
					<param>yes</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server1"/>
			</action_list>
		</test_declaration>

		<test_declaration id="CrashRecovery12_Test07" descriptive_name="CrashRecovery12 Test07" author="JDC">
			<description>Crash in rollback and crash RM test</description>
			<configuration names_required="1"/>
			<action_list>
				<perform_task id="org.jboss.jbossts.qa.Utils.EmptyObjectStore" location="all">
				</perform_task>
				<perform_task id="org.jboss.jbossts.qa.CrashRecovery12Setups.Setup01" runtime_id="setup0">
					<param>CR12_07.log</param>
				</perform_task>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server0" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Clients.Client01" runtime_id="client0"
							location="setup0">
					<param>rollback</param>
					<param>CR12_07.log</param>
				</start_task>
				<wait_for_task runtime_id="client0"/>
				<terminate_task runtime_id="server0"/>
				<start_task id="com.arjuna.ats.arjuna.recovery.RecoveryManager" runtime_id="server1" location="setup0">
					<param>$(ORBFLAGS_1)</param>
					<param>$(ORBFLAGS_2)</param>
					<param>-test</param>
				</start_task>
				<start_task id="org.jboss.jbossts.qa.CrashRecovery12Outcomes.Outcome01" runtime_id="outcome0"
							location="setup0">
					<param>45000</param>
					<param>CR12_07.log</param>
					<param>no</param>
				</start_task>
				<wait_for_task runtime_id="outcome0"/>
				<terminate_task runtime_id="server1"/>
			</action_list>
		</test_declaration>

	</test_group>
</test_set>
