<project xmlns="http://maven.apache.
xsi:schemaLocation="http://
<modelVersion>4.0.0</
<groupId>com.itgrids</groupId>
<artifactId>SampleTest1</
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Selenium Functional Tests</name>
<url>http://www.salesforce.com
<dependencies>
<dependency>
<groupId>org.seleniumhq.
<artifactId>selenium-java-
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.
<artifactId>selenium-server</
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng </groupId>
<artifactId>testng</
<version>5.8</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-
<version>1.0.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<!-- Selenium Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</
<artifactId>selenium-maven-
<version>1.0</version>
<executions>
<execution>
<id>copy</id>
<phase>pre-integration-test</
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<!-- <artifactItems>
</artifactItems> -->
<background>true</background>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.
<artifactId>maven-antrun-
<executions>
<execution>
<id>start-selenium</id>
<phase>pre-integration-test</
<configuration>
<tasks>
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>stop-selenium</id>
<phase>post-integration-test</
<configuration>
<tasks>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Surefire plugin -->
<plugin>
<groupId>org.apache.maven.
<artifactId>maven-surefire-
<executions>
<execution>
<phase>integration-test</
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<skip>false</skip>
</configuration>
</execution>
</executions>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>
**/*.xml
</suiteXmlFile>
</suiteXmlFiles>
<parallel>true</parallel>
<threadCount>10</threadCount>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>SampleTest1/
</reporting>
<repositories>
<repository>
<id>openqa</id>
<url>http://maven.openqa.org</
</repository>
</repositories>
<properties>
<selenium-version>1.0.1</
</properties>
</project>
Thank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u
ReplyDeleteSelenium Training in Chennai