[jboss-cvs] JBossAS SVN: r104563 - in branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts: test and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 7 11:40:37 EDT 2010


Author: rachmatowicz at jboss.com
Date: 2010-05-07 11:40:36 -0400 (Fri, 07 May 2010)
New Revision: 104563

Added:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/README.txt
Modified:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/RunTestCase.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java
Log:
Increase timeout for server startup/shutdown to match JBoss Test timeout of 120 seconds (JBQA-3309)

Added: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/README.txt
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/README.txt	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/README.txt	2010-05-07 15:40:36 UTC (rev 104563)
@@ -0,0 +1,30 @@
+Test cases for command-line scripts
+-----------------------------------
+
+1. This directory ('scripts') contains automated tests for the command-line
+scripts found in JBOSS_DIST/bin directory, including run.sh, shutdown.sh,
+twiddle.sh and probe.sh. The tests also cover the case of the Windows-based
+counterparts.
+
+2. There are two test targets used to test these scripts:
+
+tests-scripts:
+- starts a JBoss instance called 'scripts' which is based on 'all'
+- executes TwiddleTestCase and ProbeTestCase against the instance
+- stops the JBoss instance
+- the server is started and stopped using JBoss Test
+
+tests-scripts-noserver:
+- makes use of a JBoss instance 'scripts-noserver'
+- executes RunTestCase and ShutdownTestCase
+- run.sh is used to start the servers
+- JMX shutdown or shutdown.sh is used to stop the servers, depending on
+the test case in question
+
+3. The commands and servers are executed using a small framework based
+on the classes AbstractShellScriptExecutor, ShellScriptExecutor and
+AsyncShellScriptExecutor. There is also a class for checking assertions
+on server log files called LogFileAssertionChecker.
+
+
+

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/RunTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/RunTestCase.java	2010-05-07 14:21:22 UTC (rev 104562)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/RunTestCase.java	2010-05-07 15:40:36 UTC (rev 104563)
@@ -64,8 +64,8 @@
 public class RunTestCase extends ScriptsTestBase
 {
 	private ObjectName SERVER_OBJ_NAME = null ;
-	private int START_TIMEOUT = 20 ;
-	private int STOP_TIMEOUT = 20 ;
+	private int START_TIMEOUT = 120 ;
+	private int STOP_TIMEOUT = 120 ;
 		
    /**
     * Create a new RunTestCase.

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java	2010-05-07 14:21:22 UTC (rev 104562)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java	2010-05-07 15:40:36 UTC (rev 104563)
@@ -59,8 +59,8 @@
 public class ShutdownTestCase extends ScriptsTestBase
 {
 	private ObjectName SERVER_OBJ_NAME = null ;
-	private int START_TIMEOUT = 20 ;
-	private int STOP_TIMEOUT = 30 ;
+	private int START_TIMEOUT = 120 ;
+	private int STOP_TIMEOUT = 120 ;
 		
    /**
     * Create a new ShutdownTestCase.




More information about the jboss-cvs-commits mailing list