Back to Course
Selenium Frameworks

Set up TestNG, Maven and Selenium for Eclipse

Installing TestNG in Eclipse

Install the TestNG plugin via Eclipse Marketplace (Help > Eclipse Marketplace > search "TestNG"), which adds TestNG project templates and run configurations.

Adding Maven Dependencies

<dependency>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium-java</artifactId>
  <version>3.141.59</version>
</dependency>
<dependency>
  <groupId>org.testng</groupId>
  <artifactId>testng</artifactId>
  <version>7.9.0</version>
</dependency>

Why This Combination Matters

Together, Maven manages dependencies, TestNG structures test execution, and Selenium drives the browser — forming the standard stack for Java-based web UI automation.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course