What is testng and how is it better than junit?



What is testng and how is it better than junit?..

Answer / Charitra Mishra

TestNG is a testing framework for Java that provides more advanced features compared to JUnit.nAdvantages of TestNG over JUnit include:
1. Flexible test annotations.
2. Ability to run tests in any order and group tests into suites.
3. Supports data-driven testing with XML configuration files.
4. Built-in reporting capabilities for generated HTML reports.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What is pom (page object model)? What are its advantages?

1 Answers  


What programing language is most useful for creating selenium evaluations?

1 Answers  


How can we deal with pop-up windows based on?

1 Answers  


Explain the difference between assert and verify commands?

1 Answers  


difference between Implicit Wait and Explicit Wait with syntax.?

8 Answers   HCL,


What is the difference between verify and assert commands?

1 Answers  


What is the difference between driver.findelement() and driver.findelements() commands?

1 Answers  


what is the use of x-path?

1 Answers  


How to check the checkbox or radio button is selected?

1 Answers  


What is an absolute xpath?

1 Answers  


Firefox driver is class or an interface and from where is it inherited?

1 Answers  


Explain me how to handle alerts in selenium webdriver?

1 Answers  


Categories