Go to Help Menu > Click on ‘Eclipse Marketplace…’
Search ‘TestNG’ and click Install :
Click on Confirm button:
Accept the terms of the License agreement and Click ‘Finish’
If you get security wanting from Eclipse then don’t worry and click on ‘Install Anyway ‘
Restart the Eclipse IDE.
To check installed TestNG Go to Window > Preferences > Check TestNG entry as below: