O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – executing testng.xml using Eclipse

Perform the following steps for executing testng.xml using Eclipse:

  1. Open Eclipse and go to the project where we have created the testng.xml file.
  2. Select the testng.xml file, right-click on it, and select Run As | TestNG suite.
  3. Eclipse will execute the XML file as TestNG suite and you can see the following report in Eclipse:
    Time for action – executing testng.xml using Eclipse

Note

The preceding window may not be shown by default in Eclipse after execution and you may have to click on the window to see the results.

You can also use the Run Configuration option provided by Eclipse to customize your TestNG tests in Eclipse. Let's learn how to configure Eclipse ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required