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 – configuring Eclipse to run a particular TestNG XML file

Perform the following steps to configure Eclipse to run a particular TestNG XML file:

  1. On the top-bar menu of Eclipse, go to Run | Run Configurations.
  2. Select TestNG from the set of configurations and click on the New Launch Configuration icon.
    Time for action – configuring Eclipse to run a particular TestNG XML file
  3. On the configuration window give a name My Test to the configuration.
  4. Go to the Project section, click on Browse and select your project on the project window.
  5. Now go to the Suite section and click on Browse. Select the mytestng.xml configuration.
  6. Click on Apply, and then click on Run. This will run the selected testng XML configuration file. ...

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