Reputation: 109
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:
But I didn't find any option of TestNG to run my test. What should be done in eclipse for this?
Upvotes: 0
Views: 3899
Reputation: 37756
It needs to install TestNG plug-in for Eclipse. To do this follow the steps below:
[Note: Right click on Registration.java -> Mouse over Run As -> Click TestNG Test. Your test Registration would be executed]
Upvotes: 2
Reputation: 616
Is it just this file that you can't run as a TestNG test or anything, i.e. have you configured Eclipse for TestNG at all yet? If not the first place to look is here http://testng.org/doc/eclipse.html
Upvotes: 1