What is testng and why is it better than junit?



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

Answer / Pankaj Tripathi

TestNG is an extension of JUnit for Java, designed to provide more power and flexibility for writing test cases. TestNG supports data-driven testing, parameterized tests, dependencies between tests, and annotations. It is considered better than JUnit because of its advanced features like handling exceptions within the test methods, time management, and reporting.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

Do you know what is selenese?

1 Answers  


Explain some automation testing tools.

1 Answers  


in keyword driven frame work..where Driver Script is locate? is there any inbuilt script for driver script?who writes the driver script?how to call it any body can tell me with an example...like(yahoo login,inbox, logout).

1 Answers   Yahoo,


What testing activities you may want to automate?

0 Answers  


Do you know what is the purpose of creating a reference variable- 'driver' of type webdriver instead of directly creating a firefoxdriver object or any other driver's reference in the statement webdriver driver = new firefoxdriver();?

1 Answers  


Do you know the difference between close and quit command?

1 Answers  


What are the frameworks available in rc?

1 Answers  


Why we use Junit and Jmeter? Suggest some sites where we can get more information on these two Tools?

2 Answers  


How to get the Background color of a Tab or Button in TestComplete Tool using VBScript? I have a validation that to verify whether a particular tab or button is highlighted or not. When the tab or button is highlighted the background color will be in Yellow color.If i get the background color then its easy for us to validate whether its highlighted or not. Can anybody help me on this?. Thanks in Advance.

1 Answers  


What did you include in a test plan?

2 Answers  


Do you know what is a xpath?

1 Answers  


Can you explain data-driven testing?

1 Answers  


Categories