RM-1104 (Investigate the integrate of UI automation tests into RM build)

* Modified the pom files to be able to create amp files
 * Added the UI tests from the share-po project to the rm-share/test folder

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/UIAUTOMATION@58768 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-12-09 18:32:10 +00:00
parent dc78719978
commit ec018f7b96
2 changed files with 196 additions and 175 deletions

View File

@@ -1 +0,0 @@
Files in this directory will be added to the amp.

View File

@@ -4,182 +4,204 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-parent</artifactId>
<version>2.2-SNAPSHOT</version>
</parent>
<artifactId>alfresco-rm</artifactId>
<name>Alfresco RM</name>
<dependencies>
<dependency>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-remote-api</artifactId> <artifactId>alfresco-rm-parent</artifactId>
<version>${alfresco.base.version}</version> <version>2.2-SNAPSHOT</version>
</dependency> </parent>
<artifactId>alfresco-rm</artifactId>
<!-- 'config' dependencies --> <name>Alfresco RM</name>
<dependency> <properties>
<groupId>org.alfresco</groupId> <app.filtering.enabled>true</app.filtering.enabled>
<artifactId>alfresco-data-model</artifactId> <maven.alfresco.version>1.1.1</maven.alfresco.version>
<version>${alfresco.base.version}</version> </properties>
<classifier>config</classifier> <build>
</dependency> <resources>
<dependency> <resource>
<groupId>org.alfresco</groupId> <directory>config</directory>
<artifactId>alfresco-repository</artifactId> <targetPath>../${project.build.finalName}/config</targetPath>
<version>${alfresco.base.version}</version> <filtering>${app.filtering.enabled}</filtering>
<classifier>config</classifier> <excludes>
</dependency> <exclude>alfresco/extension/dev-context.xml</exclude>
<dependency> </excludes>
<groupId>org.alfresco</groupId> </resource>
<artifactId>alfresco-remote-api</artifactId> <resource>
<version>${alfresco.base.version}</version> <directory>config/alfresco/module/org_alfresco_module_rm</directory>
<classifier>config</classifier> <targetPath>../${project.build.finalName}</targetPath>
</dependency> <includes>
<include>module.properties</include>
<!-- Test dependencies --> </includes>
<dependency> <filtering>${app.filtering.enabled}</filtering>
<groupId>junit</groupId> </resource>
<artifactId>junit</artifactId> </resources>
<version>4.11</version> <plugins>
<scope>test</scope> <!-- Additional source folder to be added: source/compatibility -->
</dependency> <plugin>
<dependency> <groupId>org.codehaus.mojo</groupId>
<groupId>org.springframework.extensions.surf</groupId> <artifactId>build-helper-maven-plugin</artifactId>
<artifactId>spring-webscripts</artifactId> <executions>
<version>1.2.0</version> <execution>
<classifier>tests</classifier> <id>add-source</id>
<scope>test</scope> <goals>
</dependency> <goal>add-source</goal>
<dependency> </goals>
<groupId>org.springframework</groupId> <configuration>
<artifactId>spring-test</artifactId> <sources>
<version>2.5</version> <source>source/compatibility</source>
<scope>test</scope> </sources>
</dependency> </configuration>
<dependency> </execution>
<groupId>org.alfresco</groupId> </executions>
<artifactId>alfresco-repository</artifactId> </plugin>
<version>${alfresco.base.version}</version> <plugin>
<classifier>tests</classifier> <artifactId>maven-surefire-plugin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-remote-api</artifactId>
<version>${alfresco.base.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.chemistry</groupId>
<artifactId>chemistry-tck-atompub</artifactId>
<version>0.1-incubating-unreleased</version>
<scope>test</scope>
</dependency>
<!-- Database drivers -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.14</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Additional source folder to be added: source/compatibility -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration> <configuration>
<sources> <includes>
<source>source/compatibility</source> <include>**/AllTestSuite.class</include>
</sources> </includes>
</configuration> </configuration>
</execution> </plugin>
</executions> <plugin>
</plugin> <groupId>org.alfresco.maven.plugin</groupId>
<plugin> <artifactId>alfresco-maven-plugin</artifactId>
<artifactId>maven-surefire-plugin</artifactId> <version>${maven.alfresco.version}</version>
<configuration> <extensions>true</extensions>
<includes> </plugin>
<include>**/AllTestSuite.class</include> </plugins>
</includes> </build>
</configuration> <profiles>
</plugin> <profile>
</plugins> <id>wipeDB</id>
</build> <build>
<plugins>
<profiles> <!-- Wipe the database before starting tests -->
<profile> <plugin>
<id>wipeDB</id> <groupId>org.codehaus.mojo</groupId>
<build> <artifactId>sql-maven-plugin</artifactId>
<plugins> <configuration>
<!-- Wipe the database before starting tests --> <autocommit>true</autocommit>
<plugin> <driver>${db.driver}</driver>
<groupId>org.codehaus.mojo</groupId> <url>${db.master.url}</url>
<artifactId>sql-maven-plugin</artifactId> <username>${db.username}</username>
<password>${db.password}</password>
</configuration>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.14</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>wipe-database</id>
<phase>process-test-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration> <configuration>
<autocommit>true</autocommit> <sqlCommand>drop database if exists alfresco</sqlCommand>
<driver>${db.driver}</driver>
<url>${db.master.url}</url>
<username>${db.username}</username>
<password>${db.password}</password>
</configuration> </configuration>
<dependencies> </execution>
<dependency> <execution>
<groupId>postgresql</groupId> <id>create-database</id>
<artifactId>postgresql</artifactId> <phase>process-test-resources</phase>
<version>9.1-901.jdbc4</version> <goals>
</dependency> <goal>execute</goal>
<dependency> </goals>
<groupId>mysql</groupId> <configuration>
<artifactId>mysql-connector-java</artifactId> <sqlCommand>create database alfresco</sqlCommand>
<version>5.1.14</version> </configuration>
</dependency> </execution>
</dependencies> </executions>
<executions> </plugin>
<execution> </plugins>
<id>wipe-database</id> </build>
<phase>process-test-resources</phase> </profile>
<goals> </profiles>
<goal>execute</goal> <dependencies>
</goals> <dependency>
<configuration> <groupId>org.alfresco</groupId>
<sqlCommand>drop database if exists alfresco</sqlCommand> <artifactId>alfresco-remote-api</artifactId>
</configuration> <version>${alfresco.base.version}</version>
</execution> </dependency>
<execution> <!-- 'config' dependencies -->
<id>create-database</id> <dependency>
<phase>process-test-resources</phase> <groupId>org.alfresco</groupId>
<goals> <artifactId>alfresco-data-model</artifactId>
<goal>execute</goal> <version>${alfresco.base.version}</version>
</goals> <classifier>config</classifier>
<configuration> </dependency>
<sqlCommand>create database alfresco</sqlCommand> <dependency>
</configuration> <groupId>org.alfresco</groupId>
</execution> <artifactId>alfresco-repository</artifactId>
</executions> <version>${alfresco.base.version}</version>
</plugin> <classifier>config</classifier>
</plugins> </dependency>
</build> <dependency>
</profile> <groupId>org.alfresco</groupId>
</profiles> <artifactId>alfresco-remote-api</artifactId>
<version>${alfresco.base.version}</version>
</project> <classifier>config</classifier>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-webscripts</artifactId>
<version>1.2.0</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-repository</artifactId>
<version>${alfresco.base.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-remote-api</artifactId>
<version>${alfresco.base.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.chemistry</groupId>
<artifactId>chemistry-tck-atompub</artifactId>
<version>0.1-incubating-unreleased</version>
<scope>test</scope>
</dependency>
<!-- Database drivers -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.14</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>