Chapter 1, Getting Started, explains TestNG and its advantages over other existing frameworks. It also explains how to install and run your first TestNG test.
Chapter 2, Understanding testng.xml, explains the testng.xml file which is used to configure the TestNG tests. It also explains different ways to create test suites by adding test packages, test classes, and test methods to the respective test suite, according to test needs.
Chapter 3, Annotations, explains the various annotations in TestNG and the different features supported by using them.
Chapter 4, Groups, explains the grouping feature provided by TestNG and how you can use it to include or exclude a group of tests in test execution.
Chapter 5, Dependencies, explains ...