Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 9934 invoked from network); 27 Oct 2006 07:55:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 07:55:41 -0000 Received: (qmail 2417 invoked by uid 500); 27 Oct 2006 07:55:51 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 2386 invoked by uid 500); 27 Oct 2006 07:55:51 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 2373 invoked by uid 99); 27 Oct 2006 07:55:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 00:55:50 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 00:55:38 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 449431A9846; Fri, 27 Oct 2006 00:54:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r468307 - in /maven/continuum/trunk/continuum-webapp-test: Readme.txt pom.xml src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java Date: Fri, 27 Oct 2006 07:54:34 -0000 To: continuum-commits@maven.apache.org From: evenisse@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061027075434.449431A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: evenisse Date: Fri Oct 27 00:54:33 2006 New Revision: 468307 URL: http://svn.apache.org/viewvc?view=rev&rev=468307 Log: Add the possibility to run tests with Internet Explorer Added: maven/continuum/trunk/continuum-webapp-test/Readme.txt (with props) Modified: maven/continuum/trunk/continuum-webapp-test/pom.xml maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java Added: maven/continuum/trunk/continuum-webapp-test/Readme.txt URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/Readme.txt?view=auto&rev=468307 ============================================================================== --- maven/continuum/trunk/continuum-webapp-test/Readme.txt (added) +++ maven/continuum/trunk/continuum-webapp-test/Readme.txt Fri Oct 27 00:54:33 2006 @@ -0,0 +1,11 @@ +Test Continuum with Tomcat 5.x and firefox + 'mvn clean install' or 'mvn clean install -Ptomcat5x,firefox' + +Test Continuum with Tomcat 5.x and Internet Explorer + 'mvn clean install -Ptomcat5x,iexplore' + +Test Continuum with Tomcat 5.x and a specific browser + 'mvn clean install -Ptomcat5x,otherbrowser -DbrowserPath=PATH_TO_YOUR_BROWSER + +Warning: If you specify your own custom browser, it's up to you to configure it correctly. At a minimum, you'll need to configure your browser to use the Selenium Server as a proxy, and disable all browser-specific prompting. +http://release.openqa.org/selenium-remote-control/nightly/doc/java/com/thoughtworks/selenium/DefaultSelenium.html#DefaultSelenium(java.lang.String,%20int,%20java.lang.String,%20java.lang.String) \ No newline at end of file Propchange: maven/continuum/trunk/continuum-webapp-test/Readme.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/continuum/trunk/continuum-webapp-test/Readme.txt ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision" Modified: maven/continuum/trunk/continuum-webapp-test/pom.xml URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/pom.xml?view=diff&rev=468307&r1=468306&r2=468307 ============================================================================== --- maven/continuum/trunk/continuum-webapp-test/pom.xml (original) +++ maven/continuum/trunk/continuum-webapp-test/pom.xml Fri Oct 27 00:54:33 2006 @@ -194,6 +194,14 @@ + + + + browser + ${browser} + + + @@ -207,6 +215,28 @@ tomcat5x http://apache.multidist.com/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.zip + + + + + firefox + + true + + + *firefox + + + + iexplore + + *iexplore + + + + otherbrowser + + ${browserPath} Modified: maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java?view=diff&rev=468307&r1=468306&r2=468307 ============================================================================== --- maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java (original) +++ maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AbstractSeleniumTestCase.java Fri Oct 27 00:54:33 2006 @@ -19,6 +19,7 @@ import com.thoughtworks.selenium.DefaultSelenium; import com.thoughtworks.selenium.Selenium; import junit.framework.TestCase; +import org.codehaus.plexus.util.StringUtils; import org.openqa.selenium.server.SeleniumServer; import java.util.Calendar; @@ -44,7 +45,13 @@ public void setUp() { - sel = new DefaultSelenium( "localhost", SeleniumServer.DEFAULT_PORT, "*firefox", baseUrl ); + String browser = System.getProperty( "browser" ); + if ( StringUtils.isEmpty( browser ) ) + { + browser = "*firefox"; + } + + sel = new DefaultSelenium( "localhost", SeleniumServer.DEFAULT_PORT, browser, baseUrl ); sel.start(); initialize(); }