Overview

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.

Basics

https://www.testingdocs.com/testng-framework-basics/

TestNG Features

https://www.testingdocs.com/testng-features/

TDD Cycle

https://www.testingdocs.com/test-driven-development-approach/

Annotations

https://www.testingdocs.com/testng-annotations/

Enable/Disable Test

https://www.testingdocs.com/testng-enable-and-disable-test/

Testing Exceptions

https://www.testingdocs.com/testng-exception-test-example/

Parameters from testng.xml

https://www.testingdocs.com/testng-reading-parameters-from-testng-xml/

Groups

https://www.testingdocs.com/testng-test-groups/

Dependencies

https://www.testingdocs.com/testng-dependencies/

SoftAssert

https://www.testingdocs.com/softassert-in-testng-framework/

Custom Asserts

https://www.testingdocs.com/custom-assertions-in-testng-framework/

Test Listener

https://www.testingdocs.com/sample-testng-suite-file-with-custom-listener/

Take screenshot when Assert fails

https://www.testingdocs.com/how-to-take-screen-shot-with-testng-when-an-assert-fails/