Author: hlship
Date: Thu Feb 15 16:10:48 2007
New Revision: 508249

URL: http://svn.apache.org/viewvc?view=rev&rev=508249
Log:
"Warm up" the Selenium tests before starting the first test (hopefully, to 
solve the spurious error we've been seeing in Bamboo).

Removed:
    
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/Main.java
Modified:
    
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java

Modified: 
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java?view=diff&rev=508249&r1=508248&r2=508249
==============================================================================
--- 
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
 (original)
+++ 
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
 Thu Feb 15 16:10:48 2007
@@ -409,7 +409,7 @@
     }
 
     @AfterClass
-    public void shutdownBackground() throws Exception
+    public void cleanup() throws Exception
     {
         // Thread.sleep(10000);
         _selenium.stop();
@@ -491,7 +491,7 @@
     }
 
     @BeforeClass
-    public void startupBackground() throws Exception
+    public void setup() throws Exception
     {
         _jettyRunner = new JettyRunner("/", JETTY_PORT, "src/test/app1");
 
@@ -503,6 +503,10 @@
                 BASE_URL);
 
         _selenium.start();
+
+        // Warm things up:
+
+        _selenium.open(BASE_URL);
     }
 
     @Test


Reply via email to