[richfaces-svn-commits] JBoss Rich Faces SVN: r16009 - in branches/community/3.3.X/samples/richfaces-demo/functional-test: src/test/java/org/jboss/richfaces/integrationTest and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Nov 26 09:36:17 EST 2009
Author: lfryc at redhat.com
Date: 2009-11-26 09:36:17 -0500 (Thu, 26 Nov 2009)
New Revision: 16009
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/pom.xml
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java
Log:
- RF-demo ftest - create property selenium.host - you can use it for attaching tests to the remote selenium-server
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/pom.xml
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/pom.xml 2009-11-26 13:31:40 UTC (rev 16008)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/pom.xml 2009-11-26 14:36:17 UTC (rev 16009)
@@ -66,6 +66,7 @@
<context.root>http://localhost:8080/</context.root>
<context.path>/richfaces-demo</context.path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <selenium.host>localhost</selenium.host>
<selenium.port>8444</selenium.port>
<firefoxProfileTemplate></firefoxProfileTemplate>
</properties>
@@ -119,9 +120,14 @@
</executions>
</plugin>
</plugins>
-
</build>
<profiles>
+ <profile>
+ <id>debug</id>
+ <properties>
+ <maven.surefire.debug>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"</maven.surefire.debug>
+ </properties>
+ </profile>
<!--
**********************
** Integration Test **
@@ -215,7 +221,7 @@
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
- <argLine>-Dbrowser='${browser}' -Dcontext.root='${context.root}' -Dcontext.path='${context.path}' -Dselenium.port='${selenium.port}'</argLine>
+ <argLine>-Dbrowser='${browser}' -Dcontext.root='${context.root}' -Dcontext.path='${context.path}' -Dselenium.host='${selenium.host}' -Dselenium.port='${selenium.port}'</argLine>
<firefoxProfileTemplate>${firefoxProfileTemplate}</firefoxProfileTemplate>
</configuration>
</execution>
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java 2009-11-26 13:31:40 UTC (rev 16008)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java 2009-11-26 14:36:17 UTC (rev 16009)
@@ -92,11 +92,11 @@
* specifies on which port should selenium server run
*/
@BeforeClass
- @Parameters( { "context.root", "context.path", "browser", "selenium.port" })
- public void initializeContext(String contextRoot, String contextPath, String browser, String seleniumPort) {
+ @Parameters( { "context.root", "context.path", "browser", "selenium.host", "selenium.port" })
+ public void initializeContext(String contextRoot, String contextPath, String browser, String seleniumHost, String seleniumPort) {
this.contextRoot = contextRoot;
this.contextPath = contextPath;
- selenium = new DefaultSelenium("localhost", Integer.valueOf(seleniumPort), browser, contextRoot);
+ selenium = new DefaultSelenium(seleniumHost, Integer.valueOf(seleniumPort), browser, contextRoot);
selenium.start();
allowInitialXpath();
loadCustomLocationStrategies();
More information about the richfaces-svn-commits
mailing list