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

Writing your first TestNG test

Before we write our first TestNG test, we have to create a Java project in Eclipse to add our TestNG test classes.

The Java project

A Java project is a place which contains Java source code and related files to compile your program. It can be used to maintain your source code and related files for proper management of the files. Let's create a Java project in Eclipse. If you already know how to create a Java project in Eclipse, you can skip this section.

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