TestNG tutorial

This tutorial was design for anyone who wants to learn and use TestNg in their test automation framework.

What is TestNG ?

TestNG is a an open source testing Framework, inspired from JUnit and Nunit, that overcomes JUnit’s limitations and provides a lot of extra features.

This tutorial explains the features and usage of TestNg with code examples for easy understanding.

Syllabus:

  • Installing TestNg in Eclipse
  • Installing TestNg in InteliJ
  • TestNg Maven setup
  • TestNG Annotations
  • @Before and @After Annotations explained
  • @Test Annotation explained
  • Using Groups in TestNG
  • @DataProvider in TestNG
  • Running tests in parallel
  • TestNG.xml explained