TestNG: Introduction

Print Page

TestNG is an open source automated testing framework that is inspired from JUnit(in Java) and NUnit(in C#). It’s one of the most popular test automation frameworks in Java. The “NG” in the name stands for “Next Generation.” This framework was created by Cedric Beust.
TestNG Logo
TestNG is similar to JUnit, but it’s more powerful and easy-to-use owing to functionalities such as integrated classes, annotations, grouping of test methods, multithreaded execution, parameterizing, and built-in reporting framework. We’ll be covering all those features here. Using TestNG, testers can handle all levels of testing, including Unit Testing, Functional Testing, Integration Testing, and End-to-end Testing.

We’ll be using TestNG with Eclipse Integrated Development Environment(IDE) as it is one of the most widely used Java IDE.

Topics:

  1. TestNG: Introduction
  2. TestNG: Install in Eclipse IDE
  3. Setup Project and Package in Eclipse IDE for TestNG (Coming up)
  4. Writing Your First Test Case in Eclipse with TestNG
  5. How to Create a TestNG Test Suite to Run Multiple Test Cases
  6. Annotations in TestNG
  7. TestNG Parameters
  8. @DataProvider annotation
  9. TestNG Groups
  10. Dependency Testing with TestNG
  11. Order TestNG Testcases
  12. Timeout in TestNG