Maven

Download TestNG to a Maven Project

Download TestNG to a Maven Project

TestNG is a Testing framework for Java. You can easily download the TestNG framework into your project. You can download TestNG to your project by adding the following dependency to your Maven project pom.xml file.

Download TestNG

You can manually add the following dependency to the pom.xml file.

<dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.8.1</version>
      <scope>test</scope>
<dependency>

Replace the TestNG version with the newest version number to download the latest version.

 

Download TestNG Maven Project

Eclipse IDE

Alternatively, right-click on the project in the Project Explorer. Choose Maven >> Add dependency

Fill in the details: group ID, artifact ID, version, and scope.