TestNG( Next Generation) is a testing framework for the Java programming language created by Cédric Beust and inspired by JUnit and NUnit. Also, the major idea and design goal of TestNG is to cover a wider range of testing categories: unit, functional, end-to-end, etc., with more powerful and easy-to-use functionalities.
TestNG is supported via plug-ins, by each of the major IDEs – Eclipse, IntelliJ IDEA, and NetBeans. Also, it is supported by the Maven build system. Furthermore, Jenkins continuous integration server has built-in support for TestNG and is able to track and chart test results over time. Most Java code coverage tools, such as Cobertura, work seamlessly with TestNG.
TestNG is widely used in Web automation using Selenium Webdriver.
Parameters from testng.xml
Take screenshot when Assert fails