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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we fetch a text written over an element?

1040


How can I learn to automate testing using selenium?

1013


How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?

1672


What is parameterized testing in testng?

1061


What is the alternate way to click on login button?

1771


Explain what is selenium ide?

969


How to pause a test execution for 5 seconds at a specific point?

1069


Explain the meaning of the statement in Selenium and what are the types of assertion?

1081


Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

4326


How you will switch from one frame to another?

912


What is selenium webdriver or google webdriver or selenium 2.0?

905


What is pom (page object model)? What are its advantages?

977


Explain what is the difference between borland silk and selenium?

1011


How would you test your element locator?

1065


How can we launch different browsers in selenium webdriver?

1033