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:

  1. right click on registration.java
  2. 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:

  1. open eclipse
  2. go --> eclipse marketplace
  3. search testng
  4. click install "testng eclipse" section
  5. follow step step instruction
  6. 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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -