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

Different build tools available

For each kind of software language in the industry there are a variety of build tools that can be used for build automation. When it comes to Java or Java related languages, following are the major build tools that are being used by the software industry:

  • Ant
  • Maven
  • Gradle

As part of this chapter we will cover Ant and Maven for automating our builds to compile and run our TestNG tests.

Ant

Ant is one of the most commonly used build tools by the software industry for the build automation of Java-based products. It is configured using an XML file and by default the configuration file name for Ant is named as build.xml. In this section we will learn how to install the Ant tool and use it to run TestNG tests.

Installing Ant ...

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