Commit ab258df2 authored by Michael Suzuki's avatar Michael Suzuki
Browse files

add new profile to setup integration

parent 84e8fd5a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -68,5 +68,10 @@
            <groupId>${alfresco.groupId}</groupId>
            <artifactId>alfresco-repository</artifactId>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>2.39.0</version>
        </dependency>
    </dependencies>
</project>
+5 −5
Original line number Diff line number Diff line
@@ -15,16 +15,16 @@
package org.alfresco.demoamp;

import org.alfresco.demoamp.po.HelloWorldPage;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class Demo
public class DemoTestIT
{
    private static WebDriver driver;
    
+44 −0
Original line number Diff line number Diff line
@@ -759,6 +759,50 @@
            </plugins>
        </build>
    </profile>
    <profile>
      <id>integration</id>
      <activation>
        <file>
          <exists>src/integration/java</exists>
        </file>
      </activation>
      <build>
      <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>1.9.1</version>
            <executions>
              <execution>
                <id>add-test-source</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>add-test-source</goal>
                </goals>
                <configuration>
                  <sources>
                    <source>src/integration/java</source>
                  </sources>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.17</version>
            <configuration>
              <includes>
                <include>**/*Test.java</include>
              </includes>
              <excludes>
                <exclude>%regex[.Test*[a-z|A-Z].class]</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>ui-test</id>
      <properties>