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

List the parameters that one needs to pass in selenium.

0 Answers  


Give the example for method overload in webdriver.

0 Answers  


What is the selenium ide and what is it used for?

0 Answers  


What are the advantages of selenium?

0 Answers  


How can we create an object repository in selenium?

0 Answers  


what is the difference between type keys and type commands?

1 Answers  


How to get a text of a web element?

0 Answers  


How to hover the mouse on an element?

0 Answers  


Is the firefoxdriver a class or an interface?

0 Answers  


List out the names of programming languages, browsers and operating systems that are supported by selenium.

0 Answers  


How do you upload a file?

0 Answers  


Is there a way for me to know all available options when I start selenium server?

0 Answers  


Categories