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 – creating your first TestNG class

Perform the following steps to create your first TestNG class:

  1. Go to File | New | Other. This will open a new Add wizard window in Eclipse.
  2. Select TestNG class from the Add wizard window and click on Next.
    Time for action – creating your first TestNG class
  3. On the next window click on the Browse button and select the Java project where you need to add your class.
    Time for action – creating your first TestNG class
  4. Enter the package name and the test class name and click on Finish.
    Time for action – creating your first TestNG class

    This window also gives you ...

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