TestNG can be invoked using a build tool such as Gradle or Ant from the command line, or from a suite XML file to group tests together to run. Up to this point, we have covered bits and pieces of the suite files, but let's look more closely at some of the features it provides us. There are many ways to define the suite—let's start by covering the suite, groups, listeners, and test sections.
The TestNG documentation on the XML suite file is located at http://testng.org/doc/documentation-main.html#testng-xml.