What is the difference between TESTNG and JUNIT? List out Annotations?



What is the difference between TESTNG and JUNIT? List out Annotations?..

Answer / chandra shekar u

JUNIT performs on serial Testing. Where as TESTNG can do both parallel and serial testing. This is the main difference. CUCUMBER can work only with JUNIT.

JUNIT annotations are:
@Test, @Before, @After, @Ignore, @BeforeClass, @AfterClass, @Rule, @Runwith(Suite.class), @SuiteClasses({}), @Parameters and @RumWith(Parameterized.class).

TESTNG Annotations are:
@Test, @Parameters, @BeforeMethod, @AfterMethod, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeGroups, @AfterGroups, @BeforeSuite, @AfterSuite and @DataProvider

Is This Answer Correct ?    15 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the advantages of using git hub for selenium?

0 Answers  


How to export the tests from selenium ide to selenium rc in different languages?

0 Answers  


How you can find broken images in a page using selenium web driver?

0 Answers  


How to get the title of the page?

0 Answers  


How to type text in a textbox using selenium?

0 Answers  






What You Know About Selenium Grid?

0 Answers  


What is pom (page object model)?

0 Answers  


How to set the size of browser window using selenium?

0 Answers  


What are the advantages of pom?

0 Answers  


Tell me how you can capture server side log selenium server?

0 Answers  


How can we clear a text written in a textbox?

0 Answers  


My application uses ajax heavily how do I use selenium rc to work with ajax operations?

0 Answers  


Categories