I wanted to invoke testng programmatically. Not eclipse plug-in.
I have associated \"testng-6.8.21.jar\" and running through eclipse and i ran below code:
Solution for me was to install TestNg. I referred this link here. As I was using latest version of eclipse, Eclipse MarketPlace option didn't work for me, if it works for you then great. Else goto Help -> Install new software and work with http://dl.bintray.com/testng-team/testng-eclipse-release/ After installation refer 1st link I mentioned to continue. All the best !!