Author: dsvyatobatsko
Date: 2008-08-29 06:39:30 -0400 (Fri, 29 Aug 2008)
New Revision: 10231
Added:
trunk/test-applications/seleniumTest/richfaces/
trunk/test-applications/seleniumTest/richfaces/pom.xml
trunk/test-applications/seleniumTest/samples/
trunk/test-applications/seleniumTest/samples/pom.xml
trunk/test-applications/seleniumTest/samples/src/
trunk/test-applications/seleniumTest/samples/src/test/
trunk/test-applications/seleniumTest/samples/src/test/java/
trunk/test-applications/seleniumTest/samples/src/test/java/org/
trunk/test-applications/seleniumTest/samples/src/test/java/org/samples/
trunk/test-applications/seleniumTest/samples/src/test/java/org/samples/booking/
trunk/test-applications/seleniumTest/samples/src/test/java/org/samples/seamdiscs/
trunk/test-applications/seleniumTest/samples/src/test/testng/
trunk/test-applications/seleniumTest/samples/src/test/testng/unix/
trunk/test-applications/seleniumTest/samples/src/test/testng/unix/testng.xml
trunk/test-applications/seleniumTest/samples/src/test/testng/win/
trunk/test-applications/seleniumTest/samples/src/test/testng/win/testng.xml
Modified:
trunk/test-applications/seleniumTest/pom.xml
Log:
created Selenium-based integration test structure for sample projects
Modified: trunk/test-applications/seleniumTest/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/pom.xml 2008-08-29 09:18:46 UTC (rev 10230)
+++ trunk/test-applications/seleniumTest/pom.xml 2008-08-29 10:39:30 UTC (rev 10231)
@@ -10,8 +10,8 @@
<modelVersion>4.0.0</modelVersion>
<groupId>seleniumTest</groupId>
<artifactId>seleniumTest</artifactId>
- <packaging>war</packaging>
- <name>seleniumTest Maven Webapp</name>
+ <packaging>pom</packaging>
+ <name>SeleniumTest</name>
<version>3.2.2-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<properties>
@@ -44,7 +44,6 @@
</repository>
</repositories>
<build>
- <finalName>seleniumTest</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
@@ -92,70 +91,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <configuration>
- <!-- Skip the normal tests, we'll run them in the integration-test phase
-->
- <skip>true</skip>
- <suiteXmlFiles>
- <!--suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_all_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_all_tidy.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_all_neko.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_default_none.xml
- </suiteXmlFile>
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_default_none.xml
- </suiteXmlFile-->
- <suiteXmlFile>
- ${project.build.directory}/test-classes/testng/testng_default_default_neko.xml
- </suiteXmlFile>
- </suiteXmlFiles>
- <properties>
- <property>
- <name>listener</name>
- <value>org.richfaces.TestAnnotationTransformer</value>
- </property>
- </properties>
- </configuration>
- <executions>
- <execution>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <skip>false</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
<profiles>
@@ -242,6 +177,10 @@
</build>
</profile>
</profiles>
+ <modules>
+ <module>richfaces</module>
+ <module>samples</module>
+ </modules>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
Added: trunk/test-applications/seleniumTest/richfaces/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/pom.xml (rev
0)
+++ trunk/test-applications/seleniumTest/richfaces/pom.xml 2008-08-29 10:39:30 UTC (rev
10231)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>seleniumTest</groupId>
+ <artifactId>seleniumTest</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>seleniumTest</groupId>
+ <artifactId>richfaces</artifactId>
+ <packaging>war</packaging>
+ <name>seleniumTest Maven Webapp</name>
+ <version>3.2.2-SNAPSHOT</version>
+ <build>
+ <finalName>seleniumTest</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <!-- Skip the normal tests, we'll run them in the integration-test phase
-->
+ <skip>true</skip>
+ <suiteXmlFiles>
+ <!--suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_all_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_all_tidy.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_all_neko.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_all_default_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_all_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_default_none.xml
+ </suiteXmlFile>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_default_none.xml
+ </suiteXmlFile-->
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng_default_default_neko.xml
+ </suiteXmlFile>
+ </suiteXmlFiles>
+ <properties>
+ <property>
+ <name>listener</name>
+ <value>org.richfaces.TestAnnotationTransformer</value>
+ </property>
+ </properties>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/test-applications/seleniumTest/richfaces/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Added: trunk/test-applications/seleniumTest/samples/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/samples/pom.xml (rev 0)
+++ trunk/test-applications/seleniumTest/samples/pom.xml 2008-08-29 10:39:30 UTC (rev
10231)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>seleniumTest</groupId>
+ <artifactId>seleniumTest</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>seleniumTest</groupId>
+ <artifactId>samples</artifactId>
+ <name>Samples</name>
+ <version>3.2.2-SNAPSHOT</version>
+ <build>
+ <finalName>seleniumTest</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>0.3.1</version>
+ <dependencies></dependencies>
+ <configuration>
+ <wait>false</wait>
+ <container>
+ <containerId>jetty6x</containerId>
+ <dependencies>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>el-impl</groupId>
+ <artifactId>el-impl</artifactId>
+ </dependency>
+ </dependencies>
+ <type>embedded</type>
+ </container>
+ <configuration>
+ <properties>
+ <cargo.servlet.port>
+ ${http.port}
+ </cargo.servlet.port>
+ </properties>
+ </configuration>
+ </configuration>
+ <executions>
+ <execution>
+ <id>start-container</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>stop-container</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <!-- Skip the normal tests, we'll run them in the integration-test phase
-->
+ <skip>true</skip>
+ <suiteXmlFiles>
+ <suiteXmlFile>
+ ${project.build.directory}/test-classes/testng/testng.xml
+ </suiteXmlFile>
+ </suiteXmlFiles>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/test-applications/seleniumTest/samples/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/samples/src/test/testng/unix/testng.xml
===================================================================
--- trunk/test-applications/seleniumTest/samples/src/test/testng/unix/testng.xml
(rev 0)
+++
trunk/test-applications/seleniumTest/samples/src/test/testng/unix/testng.xml 2008-08-29
10:39:30 UTC (rev 10231)
@@ -0,0 +1,19 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+<suite name="seleniumTest">
+ <test name="IEFunctionalTests">
+ <parameter name="browser" value="*iexplore"/>
+ <packages>
+ <package name="org.samples.booking" />
+ <package name="org.samples.seamdiscs" />
+ </packages>
+ </test>
+
+ <test name="FireFoxFunctionalTests">
+ <parameter name="browser" value="*firefox"/>
+ <packages>
+ <package name="org.samples.booking" />
+ <package name="org.samples.seamdiscs" />
+ </packages>
+ </test>
+</suite>
+
Property changes on:
trunk/test-applications/seleniumTest/samples/src/test/testng/unix/testng.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/samples/src/test/testng/win/testng.xml
===================================================================
--- trunk/test-applications/seleniumTest/samples/src/test/testng/win/testng.xml
(rev 0)
+++ trunk/test-applications/seleniumTest/samples/src/test/testng/win/testng.xml 2008-08-29
10:39:30 UTC (rev 10231)
@@ -0,0 +1,19 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+<suite name="seleniumTest">
+ <test name="IEFunctionalTests">
+ <parameter name="browser" value="*iexplore"/>
+ <packages>
+ <package name="org.samples.booking" />
+ <package name="org.samples.seamdiscs" />
+ </packages>
+ </test>
+
+ <test name="FireFoxFunctionalTests">
+ <parameter name="browser" value="*firefox"/>
+ <packages>
+ <package name="org.samples.booking" />
+ <package name="org.samples.seamdiscs" />
+ </packages>
+ </test>
+</suite>
+
Property changes on:
trunk/test-applications/seleniumTest/samples/src/test/testng/win/testng.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native