Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to use latest version of selenium and parallel-webtest

  • Loading branch information...
commit 4989aa15708e1b3cc6bbeb8b69934f74043a221c 1 parent ed6005c
David Drake yurodivuie authored
34 src/main/resources/archetype-resources/pom.xml
View
@@ -23,12 +23,12 @@
<hamcrest.version>1.3.RC2</hamcrest.version>
<junit.version>4.10</junit.version>
<logback.version>1.0.0</logback.version>
- <parallel-webtest.version>1.0.19</parallel-webtest.version>
- <selenium.version>2.17.0</selenium.version>
+ <parallel-webtest.version>1.2.4</parallel-webtest.version>
+ <selenium.version>2.20.0</selenium.version>
- <!-- These properties are used to control running multiple tests in parallel.
- Set parallelrun to "classes" to run in parallel, or leave empty to run normally
- (serially). Output in parallel is batched up and then sent all at once, so
+ <!-- These properties are used to control running multiple tests in parallel.
+ Set parallelrun to "classes" to run in parallel, or leave empty to run normally
+ (serially). Output in parallel is batched up and then sent all at once, so
it may appear to be crashed, but will run much faster. -->
<parallelrun>classes</parallelrun>
<threadcount>5</threadcount>
@@ -50,7 +50,7 @@
</dependency>
<dependency>
- <!-- This is the custom Selenium code, which manages the integration with
+ <!-- This is the custom Selenium code, which manages the integration with
Selenium and SauceLabs -->
<groupId>com.dynacrongroup</groupId>
<artifactId>parallel-webtest</artifactId>
@@ -113,12 +113,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.11</version>
+ <version>2.12</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
- <version>2.11</version>
+ <version>2.12</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -129,7 +129,7 @@
</pluginManagement>
<plugins>
<plugin>
- <!-- This is required to properly support the mvn site command; it does
+ <!-- This is required to properly support the mvn site command; it does
not have anything to do with web tests specifically -->
<artifactId>maven-site-plugin</artifactId>
<executions>
@@ -165,7 +165,7 @@
</configuration>
</plugin>
- <!-- This tells surefire to pick up the parallel configuration options
+ <!-- This tells surefire to pick up the parallel configuration options
set in properties (above). -->
<!-- This sets up the default run to be just local firefox (per default.web.drvier) -->
<plugin>
@@ -183,7 +183,7 @@
<plugin>
- <!-- This is the configuration that binds the failsafe plugin to the
+ <!-- This is the configuration that binds the failsafe plugin to the
integration-test phase of the default Maven lifecycle. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
@@ -207,7 +207,7 @@
</plugin>
- <!-- This is the configuration that binds Tomcat to start and stop automatically
+ <!-- This is the configuration that binds Tomcat to start and stop automatically
as part of the build process. -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
@@ -218,18 +218,18 @@
<!-- Copies Tomcat from remote site -->
<zipUrlInstaller>
<url>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.22/bin/apache-tomcat-7.0.22.zip</url>
- <!-- Note that by default Tomcat is placed inside your target directory.
- This ensures a clean build. You may want to change this value when you are
+ <!-- Note that by default Tomcat is placed inside your target directory.
+ This ensures a clean build. You may want to change this value when you are
doing dev to something local. -->
<extractDir>${project.build.directory}/cargo-tomcat</extractDir>
</zipUrlInstaller>
- <!-- We are routing the standard output as emitted from Tomcat into
- this file. This keeps the Maven log clean and also makes the Tomcat log more
+ <!-- We are routing the standard output as emitted from Tomcat into
+ this file. This keeps the Maven log clean and also makes the Tomcat log more
readable. -->
<output>${project.build.directory}/tomcat.log</output>
</container>
<configuration>
- <!-- This tells Cargo that we are using a unique, clean installation
+ <!-- This tells Cargo that we are using a unique, clean installation
of Tomcat -->
<type>standalone</type>
<deployables>
4 src/main/resources/archetype-resources/src/test/java/remote/SeleniumSimpleIT.java
View
@@ -36,14 +36,14 @@ public SeleniumSimpleIT(String browser, String browserVersion) {
@Test
public void firstTest() {
- log.info( "the browser is: " + this.getTargetWebBrowser().browser );
+ log.info( "the browser is: " + this.getTargetWebBrowser().getBrowser() );
driver.get( p._( "/" ) );
assertTrue( driver.getPageSource().contains( "Google" ) );
}
@Test
public void secondTest() {
- log.info( "this version is: " + this.getTargetWebBrowser().version );
+ log.info( "this version is: " + this.getTargetWebBrowser().getVersion() );
driver.get( p._( "/" ) );
assertTrue( driver.getPageSource().contains( "Search" ) );
8 src/main/resources/archetype-resources/src/test/resources/logback-test.xml
View
@@ -6,10 +6,10 @@
<!-- Defines the format for log entries. -->
<property name="logEntryFormat"
- value="%-12date{HH:mm:ss.SSS} %-5level %-10logger{5}| %msg%n" />
+ value="%-12date{HH:mm:ss.SSS} %-5level %-40.40logger{40} | %msg%n" />
- <!-- Appender specifying the log file that catches everything else. This
- is typically used to log raw, non-contextual, stack traces with. Useful in
+ <!-- Appender specifying the log file that catches everything else. This
+ is typically used to log raw, non-contextual, stack traces with. Useful in
troubleshooting -->
<appender name="uncategorizedErrors" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
@@ -17,7 +17,7 @@
</encoder>
</appender>
- <!-- Appender specifying the main log for this application. Catches ${groupId}
+ <!-- Appender specifying the main log for this application. Catches ${groupId}
and child events -->
<appender name="testFileAppender" class="ch.qos.logback.core.FileAppender">
<file>target/test.log</file>
Please sign in to comment.
Something went wrong with that request. Please try again.