Skip to content

Commit

Permalink
TESTVN-1676: Change timeout from 10s into timeout default : 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
Linh Vu committed Nov 4, 2010
1 parent b1189aa commit 3e73235
Showing 1 changed file with 198 additions and 198 deletions.
396 changes: 198 additions & 198 deletions selegen-test/pom.xml
@@ -1,198 +1,198 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>selegen-parent</artifactId>
<version>0.9.1-SNAPSHOT</version>
</parent>

<artifactId>selegen-test</artifactId>
<version>0.9.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Selenium Sniff Test for selegen.test</name>
<description>Automated UI tests for selegen.test</description>

<properties>
<org.selenium.server.version>1.0.1</org.selenium.server.version>
<org.selenium.maven-plugin.version>1.0.1</org.selenium.maven-plugin.version>

<!-- configuration values for Selegen -->
<selenium.port>8444</selenium.port><!-- 4444 (selenium RC default) is used by JBoss -->
<selenium.browser>firefox</selenium.browser>
<selenium.timeout>10000</selenium.timeout>
<selenium.speed>300</selenium.speed>
</properties>

<dependencies>

<dependency>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>selegen-core</artifactId>
<version>0.9.1-SNAPSHOT</version>
</dependency>

<!-- eXo User Extensions -->
<dependency>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>user-extension</artifactId>
<version>0.9.1-SNAPSHOT</version>
<type>js</type>
</dependency>

<!-- external deps -->
<dependency>
<groupId>org.seleniumhq.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>${org.selenium.server.version}</version>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>${org.selenium.server.version}</version>
</dependency>
</dependencies>

<profiles>
<profile>
<id>selenium</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated/test</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>

<!-- get the user-extension attached with selegen -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeTypes>js</includeTypes>
<stripVersion>true</stripVersion>
<outputDirectory>${project.build.directory}/selenium</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-test-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.exoplatform.selenium.SeleniumTestCaseGenerator</mainClass>
<arguments>
<argument>${project.basedir}/src/suite</argument>
<argument>${project.build.directory}/generated/test</argument>
</arguments>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>${org.selenium.maven-plugin.version}</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<logFile>${project.build.directory}/server.log</logFile>
<logOutput>true</logOutput>
<userExtensions>${project.build.directory}/selenium/user-extension.js</userExtensions>
<port>${selenium.port}</port>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<includes><include>**/selenium/Test_*.java</include></includes>
<systemProperties>
<property>
<name>selenium.port</name>
<value>${selenium.port}</value>
</property>
<property>
<name>selenium.browser</name>
<value>${selenium.browser}</value>
</property>
<property>
<name>selenium.speed</name>
<value>${selenium.speed}</value>
</property>
<property>
<name>selenium.timeout</name>
<value>${selenium.timeout}</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</profile>
</profiles>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>selegen-parent</artifactId>
<version>0.9.1-SNAPSHOT</version>
</parent>

<artifactId>selegen-test</artifactId>
<version>0.9.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Selenium Sniff Test for selegen.test</name>
<description>Automated UI tests for selegen.test</description>

<properties>
<org.selenium.server.version>1.0.1</org.selenium.server.version>
<org.selenium.maven-plugin.version>1.0.1</org.selenium.maven-plugin.version>

<!-- configuration values for Selegen -->
<selenium.port>8444</selenium.port><!-- 4444 (selenium RC default) is used by JBoss -->
<selenium.browser>firefox</selenium.browser>
<selenium.timeout>30000</selenium.timeout>
<selenium.speed>300</selenium.speed>
</properties>

<dependencies>

<dependency>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>selegen-core</artifactId>
<version>0.9.1-SNAPSHOT</version>
</dependency>

<!-- eXo User Extensions -->
<dependency>
<groupId>org.exoplatform.utils.selegen</groupId>
<artifactId>user-extension</artifactId>
<version>0.9.1-SNAPSHOT</version>
<type>js</type>
</dependency>

<!-- external deps -->
<dependency>
<groupId>org.seleniumhq.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>${org.selenium.server.version}</version>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>${org.selenium.server.version}</version>
</dependency>
</dependencies>

<profiles>
<profile>
<id>selenium</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated/test</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>

<!-- get the user-extension attached with selegen -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeTypes>js</includeTypes>
<stripVersion>true</stripVersion>
<outputDirectory>${project.build.directory}/selenium</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-test-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.exoplatform.selenium.SeleniumTestCaseGenerator</mainClass>
<arguments>
<argument>${project.basedir}/src/suite</argument>
<argument>${project.build.directory}/generated/test</argument>
</arguments>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>${org.selenium.maven-plugin.version}</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<logFile>${project.build.directory}/server.log</logFile>
<logOutput>true</logOutput>
<userExtensions>${project.build.directory}/selenium/user-extension.js</userExtensions>
<port>${selenium.port}</port>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<includes><include>**/selenium/Test_*.java</include></includes>
<systemProperties>
<property>
<name>selenium.port</name>
<value>${selenium.port}</value>
</property>
<property>
<name>selenium.browser</name>
<value>${selenium.browser}</value>
</property>
<property>
<name>selenium.speed</name>
<value>${selenium.speed}</value>
</property>
<property>
<name>selenium.timeout</name>
<value>${selenium.timeout}</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</profile>
</profiles>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 3e73235

Please sign in to comment.