There are 2 ways to install this but I generally prefer using Marketplace of Eclipse.
Install Testng in eclipse for Selenium
- Start eclipse
- Go to help section
- Click on Eclipse Marketplace
- Search for TestNG
- Hit Enter or click on Search Option
- Click on install
- It will start downloading and It will ask to restart the Eclipse.
- Now you can use TestNG feature in Eclipse.
Note- Once you install TestNG plugin it will store testng.jar so once you start Selenium then you don’t have to use or import jar again in your project.