Saturday 9 June 2018

Introduction to TestNG and TestNG Setup in Eclipse

TestNG is Next Generation Testing framework developed in the lines of JUnit and NUnit, but it has some new functionalities that make it more powerful and easier to use. TestNG is designed to cover all kinds of tests: unit, functional, end-to-end, integration, etc., and it requires JDK 5 or higher.

Pros of using TestNG -
There are number of benefits but from Selenium/Appium perspective, major advantages of TestNG are :
  1. It gives the ability to produce HTML Reports of Test Suit execution.
  2. Annotations makes testers life easy and defines flow of test execution.
  3. Test cases can be Grouped & Prioritized more easily using TestNG annotations.
  4. Parallel testing is possible for example running same test on multiple browsers at the same time.
  5. Generates Logs which are useful for debugging purposes.
  6. Data Parameterization is possible.

Video Tutorial -

 How to Configure TestNG in Eclipse -

1. Open Eclipse.
2. Navigate to Eclipse Marketplace.

3. Search TestNG.

4. Click on Install.
5. Done.

1 comment:

  1. Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
    Thanks & Regards,
    VRIT Professionals,
    No.1 Leading Web Designing Training Institute In Chennai.