It needs to install TestNG plug-in for Eclipse. To do this follow the steps below:
- Open eclipse
- Go to Help --> Eclipse Marketplace
- Search as TestNG
- Click Install for "TestNG for Eclipse" section
- Follow the step by step instruction
- After successful installation observe TestNG on Window --> Preferences (TestNG is enlisted at left panel)
[Note: Right click on Registration.java -> Mouse over Run As -> Click TestNG Test. Your test Registration would be executed]