Title: [waffle-scm] [500] trunk/integration/waffle-taglib/src/test/java/org/codehaus/waffle/taglib/acceptance/IntegrationTest.java: opening the browser window only once
Revision
500
Author
fabio.kung
Date
2007-12-18 11:12:17 -0600 (Tue, 18 Dec 2007)

Log Message

opening the browser window only once

Modified Paths


Diff

Modified: trunk/integration/waffle-taglib/src/test/java/org/codehaus/waffle/taglib/acceptance/IntegrationTest.java (499 => 500)

--- trunk/integration/waffle-taglib/src/test/java/org/codehaus/waffle/taglib/acceptance/IntegrationTest.java	2007-12-18 17:09:50 UTC (rev 499)
+++ trunk/integration/waffle-taglib/src/test/java/org/codehaus/waffle/taglib/acceptance/IntegrationTest.java	2007-12-18 17:12:17 UTC (rev 500)
@@ -1,6 +1,8 @@
 package org.codehaus.waffle.taglib.acceptance;
 
 import com.thoughtworks.selenium.SeleneseTestCase;
+import com.thoughtworks.selenium.Selenium;
+import junit.framework.TestCase;
 
 /**
  * A basic integration test class that runs all tests in browser
@@ -8,17 +10,12 @@
  * @author Guilherme Silveira
  * @author Nico Steppat
  */
-public abstract class IntegrationTest extends SeleneseTestCase {
+public abstract class IntegrationTest extends TestCase {
 
-	public void setUp() throws Exception {        
-		String browserString = System.getProperty("seleniumBrowserString");
-        setUp("http://localhost:8080", browserString);
-	}
-
-	protected void open(String url) {
+    protected void open(String url) {
 		String contextPath = System.getProperty("seleniumContextPath");
-        selenium.open(contextPath + url);
-        selenium.waitForPageToLoad("2000");
+        getSelenium().open(contextPath + url);
+        getSelenium().waitForPageToLoad("2000");
 	}
 
     protected Field field(String localizer) {
@@ -33,8 +30,12 @@
         }
 
         public String value() {
-            return selenium.getValue(localizer);
+            return getSelenium().getValue(localizer);
         }
     }
+
+    public Selenium getSelenium() {
+        return AcceptanceSuite.getSelenium();
+    }
     
 }


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to