Explain me what is TestNG and why is it better than JUnit?

Submitted by: Muhammad
TestNG is a testing framework inspired from JUnit and NUnit in a way to use the merits by both the developers and testers. Here are some new functionalities that make it more powerful and easier to use, such as:

☛ test that your code is multithread safe
☛ support for data-driven testing
☛ support for parameters
☛ a variety of tools and plug-ins support (Eclipse, IDEA, Maven, etc...)
☛ default JDK functions for runtime and logging
☛ dependent methods for application server testing
☛ flexible test configuration
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers