Answer is too long and 1 comment allow only 8000 characters hence answring in multiple comments.
There are two methods to launch script in testng.
1) Using run as "TestNG Test"
For this, install testng plugin in your eclipse.
Stpes to Install:
1) Launch the Eclipse IDE and from Help menu, click âInstall New Softwareâ.
2) You will see a dialog window, click âAddâ button.
3) Type name as you wish, lets take âTestNGâ and type âhttp://beust.com/eclipse/â as location. Click OK.