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 – running tests through Eclipse

Perform the following steps to run tests through Eclipse:

  1. Select the Java project in the Eclipse and go to Run | Run Configuration.
    Time for action – running tests through Eclipse
  2. Select TestNG in the given options and click on the New button to create a new configuration.
    Time for action – running tests through Eclipse
  3. TestNG plugin provides multiple options for running your test cases as follows:
    • Class: Using this option you can provide the class name along with the package to run only the said specific test class.
    • Method: Using this you can run only a specific method in a test class.
    • Groups: In

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