Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

TestNG Tutorials 3: How To Add TestNG Plugin in Eclipse

Posted on 02/19/2025 By admin

When you create some TestNG tests and you want to run that test as a TestNG test in Eclipse, by default you do not get any option for that. To run TestNG tests in Eclipse, we need TestNG Plugin for Eclipse.

Since IntelliJ comes bundled with TestNG plugin, you do not require to install explicitly in IntelliJ. Another point to note here that TestNG library and TestNG plugin both are two different things. TestNG library used to write TestNG tests while TestNG plugin required for eclipse to run TestNG tests.

We can install TestNG plugin in Eclipse in two ways:-

  1. Using Market Place
  2. Using Install New Software option

Steps to be followed:

Steps 1: Navigate to Help-> Eclipse Marketplace.

You will see below screen.

Steps 2: Type “TestNG” in “Find” test box and click on “Search” icon. It will search and show you TestNG.

If TestNG is not installed, it will show you “Installed” else “Install”. Click on “Install” and it will be installed.

Steps 3: Click on “Confirm” button.

Steps 4: Click on radio button of “I accept the term of the licence agreement.” and click on “Finish” button.

Steps 5: You might get below warning message. Click on “Install anyways”.

Steps 6: Restart Eclipse.

You are done with the installation of TestNG Plugin in Eclipse now.

You may not find TestNG in Eclipse Market Place sometimes, then you can drag and drop from below URL to Eclipse Market Place.

https://marketplace.eclipse.org/content/testng-eclipse

This is the best way to install TestNG plugin in Eclipse as in first way, many times you face problems like TestNG is not found in Eclipse Market Place.

When you download TestNG plugin in Eclipse using Eclipse Market Place, you will see an URL from where it will be downloaded. Same URL you can directly provide that URL in “Install New Software” option. Further steps are same as above way.

URL is as below:-

https://dl.bintray.com/testng-team/testng-eclipse-release/

Recently URL was changed. So you should always check URL in official TestNG document here.

Type above URL in “Work With” text box. As soon as you type,it will start searching and will show “TestNG” in text area. Click on checkbox of TestNG and click on “Next” button. Since TestNG Eclipse Plugin 6.9.10, there is a new optional plug-in for M2E (Maven Eclipse Plugin) integration. It’s recommended to install it if your Java project(s) are managed by Maven.

You need to accept terms of Apache license agreement and restart eclipse to complete installation of TestNG plugin.

After installation, you will see Run as a TestNG Test for TestNG class as shown below :-

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyLearning

Uncategorized

Post navigation

Previous Post: API Testing – Page 2
Next Post: REST Assured Tutorial 69 – Response Logging In Rest Assured

Related Posts

Frequently Asked Java Programs: 33 – Insert a String into Another String at given index Uncategorized
All About getText() method: What, Why And How. | Make Selenium Easy Uncategorized
November 12, 2017 – Make Selenium Easy Uncategorized
REST Assured Tutorial 1 – Introduction to REST Assured Uncategorized
consoleInFirefox – Make Selenium Easy Uncategorized
image – Make Selenium Easy Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark