How to add TestNG to the project.

1) Go to eclipse.

2) Help
3) Eclipse Marketplace
4) In Find, search for TestNG
5) Install 'TestNG for Eclipse'
6) Then Right click on your project and Navigate to Build Path then click on Add Libraries
7) Select TestNG and click on next and finish it.
8) That's all.