java - How to execute Selenium Webdriver test as TestNG in eclipse -
i'm using selenium webdriver java , testng test framework. i'm using eclipse (eclipse-jee-indigo-sr2-win32) ide. want execute test (java file) in eclipse testng test.
for example, have registration.java , want run within eclipse testng test. running file did following steps:
- right click on registration.java
- mouse on "run as" @ pop up
but didn't find option of testng run test. should done in eclipse this?
it needs install testng plug-in eclipse. follow steps below:
- open eclipse
- go --> eclipse marketplace
- search testng
- click install "testng eclipse" section
- follow step step instruction
- after successful installation observe testng on window --> preferences (testng enlisted @ left panel)
[note: right click on registration.java -> mouse on run -> click testng test. test registration executed]
Comments
Post a Comment