Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 ?    13 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are core extension?

0 Answers  


sorting java array

0 Answers   SunGard,


What are the different exceptions you have faced in selenium webdriver?

0 Answers  


How to capture screenshot in webdriver?

0 Answers  


What is selenese and what are the types of selenese?

0 Answers  






How you can debug the tests in selenium ide?

0 Answers  


What are startpoints and breakpoints in selenium?

0 Answers  


What are driver.close and driver.quit in WebDriver? Which is more preferable?

0 Answers  


How to assert text of webpage using selenium 2.0?

0 Answers  


What kind of keyboard operations can be performed in selenium?

0 Answers  


Explain how you will login into any site if it is showing any authentication popup for username and password?

0 Answers  


How to handle alerts in selenium webdriver?

0 Answers  






Categories