예제 #1
0
  @Test
  public void JTSRemote_DistributedHammerTest2() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(960));
    server1.start("$(1)");
    Task server2 =
        createTask(
            "server2",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(960));
    server2.start("$(2)");

    Task client =
        createTask(
            "client1",
            com.hp.mwtests.ts.jts.remote.hammer.DistributedHammer2.class,
            Task.TaskType.EXPECT_PASS_FAIL,
            getTimeout(960));
    client.start("$(1)", "$(2)");
    client.waitFor();

    server1.terminate();
    server2.terminate();
  }
예제 #2
0
  @Test
  public void JTSRemote_PerfTest() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.GridServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(960));
    server1.start("$(1)");

    startAndWaitForClient(com.hp.mwtests.ts.jts.remote.hammer.PerfHammer.class, "$(1)");

    server1.terminate();
  }
예제 #3
0
  @Test
  public void JTSRemote_TimeoutTest() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.SetGetServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(480));
    server1.start("$(1)");

    startAndWaitForClient(com.hp.mwtests.ts.jts.remote.timeout.TimeoutClient.class, "$(1)");

    server1.terminate();
  }
예제 #4
0
  @Test
  public void JTSRemote_ImplicitPropagationTest() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.StackServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(480));
    server1.start("$(1)");

    startAndWaitForClient(com.hp.mwtests.ts.jts.remote.arjuna.ImplicitArjunaClient.class, "$(1)");

    server1.terminate();
  }
 @After
 public void tearDown() {
   try {
     server0.terminate();
     Task task0 =
         createTask(
             "task0",
             org.jboss.jbossts.qa.Utils.RemoveServerIORStore.class,
             Task.TaskType.EXPECT_PASS_FAIL,
             480);
     task0.perform("$(1)");
   } finally {
     super.tearDown();
   }
 }
 @Before
 public void setUp() {
   super.setUp();
   server0 =
       createTask(
           "server0",
           com.arjuna.ats.arjuna.recovery.RecoveryManager.class,
           Task.TaskType.EXPECT_READY,
           480);
   server0.start("-test");
 }
 @Test
 public void RawSubtransactionAwareResources02_1_Test002() {
   setTestName("Test002");
   Task server1 =
       createTask(
           "server1",
           org.jboss.jbossts.qa.RawSubtransactionAwareResources02Servers.Server01.class,
           Task.TaskType.EXPECT_READY,
           480);
   server1.start("$(1)");
   Task client0 =
       createTask(
           "client0",
           org.jboss.jbossts.qa.RawSubtransactionAwareResources02Clients1.Client002.class,
           Task.TaskType.EXPECT_PASS_FAIL,
           480);
   client0.start("$(1)");
   client0.waitFor();
   server1.terminate();
 }
예제 #8
0
  @Test
  public void JTSRemote_DistributedHammerTest3() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(480));
    server1.start("$(1)");
    Task server2 =
        createTask(
            "server2",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(480));
    server2.start("$(2)");

    startAndWaitForClient(
        com.hp.mwtests.ts.jts.remote.hammer.DistributedHammer3.class, "$(1)", "$(2)");

    server1.terminate();
    server2.terminate();
  }