1.

What is TestNG, what are the benefits of it?

Answer»

TestNG is an open-source testing framework inspired by JUnit and NUnit but presenting some new functionality that makes it simply easy, effortless, and powerful to use where NG of TestNG stands for Next Generation. It is same as JUnit but it is more robust than JUnit. To make execution more efficient and powerful more functionality is added. It is very much DATA-Driven but is powerful than JUnit. Most of the negative TRAITS of the older framework are removed from TestNG and it gives developers the ability to write more FLEXIBLE and powerful tests with the help of annotations, grouping, sequencing and parameterizing.

Advantages of TestNG are -

  • Can generate logs
  • Due to Annotations code is efficient and easy to manage
  • Ability to generate execution Reports in HTML
  • Can be Grouped & Prioritised tests easily
  • Parallel testing is possible in TestNG
  • Data Parameterization is supported
  • Due to annotation testing time reduced considerable testing time reduce considerably
  • Scheduling of test cases can be done properly
  • Can use a data-driven approach by USING a data provider
  • Proper control over test execution is possible


Discussion

No Comment Found