Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How do I upload a file using selenium? I need to upload a word file during test execution.

0 Answers  


Mention what are the advantages of using git hub for selenium?

0 Answers  


How to execute javascript in selenium?

0 Answers  


Mention what is intellij?

0 Answers  


What are the two modes of views in selenium ide?

0 Answers  


How to set test case priority in testng?

0 Answers  


in real world, how do we log reports using selenium? is it with log4j or testNG listener?? please answer asap

2 Answers  


Explain what is the difference between find elements () and find element ()?

0 Answers  


What is the difference between page object model (pom) and page factory?

0 Answers  


Explain what are the different types of locators in selenium?

0 Answers  


How to switch between frames in selenium?

0 Answers  


Can selenium handle windows based pop up?

0 Answers  


Categories