I'm using Selenium WebDriver with Java and TestNG as Test framework. I'm using Eclipse (eclipse-jee-indigo-SR2-win32) as IDE. I want to execute my test (java file) in eclipse as TestNG test.
For example, I have Registration.java and I want to run within eclipse as TestNG test. For running this file I did the following steps:
- Right click on Registration.java
- Mouse over "Run As" at pop up
But I didn't find any option of TestNG to run my test. What should be done in eclipse for this?