How do I run a TestNG in Eclipse?

How do I run a TestNG in Eclipse?

  1. Create Maven Project in Eclipse.2.Add Java ,Selenium and TestNG depedencies in pom file . Create Java Class which have atleast one method annotated with @Test. Now right click that class file and you can see “Run As TestNG Class”. If not able to see this option then Add TestNG plugin from Eclipse marketplace.

Create TestNG Project In Eclipse and Run Selenium Test Script