Skip to content

Instantly share code, notes, and snippets.

@timothyshort
Last active July 13, 2017 16:11
Show Gist options
  • Save timothyshort/855b688aac0f15e4f1d2249fc765a305 to your computer and use it in GitHub Desktop.
Save timothyshort/855b688aac0f15e4f1d2249fc765a305 to your computer and use it in GitHub Desktop.
Maven's POM.xml file for TestNG, JUnit, Selenium
<!-- ADD PROJECT DEPENDENCIES -->
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>
<!-- ADD PROJECT PLUGINS -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<configuration>
<suiteXmlFiles>
<!-- NAME OF XML SUITE FILE -->
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment