Thursday, June 19, 2014

TestNG Configuration in maven

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>SeleniumMavenTestNGSuccessCase</groupId>
  <artifactId>SeleniumMavenTestNGSuccessCase</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>SeleniumMavenTestNGSuccessCase</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
 
  <dependencies>
   <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.3.1</version>
      <scope>test</scope>
    </dependency>
 </dependencies>
 <build>
 <plugins>
 
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.16</version>
        <configuration>
     
           <suiteXmlFiles>
                        <suiteXmlFile>src/main/resources/Second/testng.xml</suiteXmlFile>
                        <suiteXmlFile>src/main/resources/Second/testng-2.xml</suiteXmlFile>
                       
                    </suiteXmlFiles>
           </configuration>
         
     
      </plugin>

</plugins>
 </build>
</project>

No comments:

Post a Comment