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

Explain what is the main difference between web-driver and rc?

884


Is there an htmlunitdriver for .net?

927


Can we edit recorded selenium ide test cases?

884


What are the types of waits available in selenium webdriver?

839


List the parameters that one needs to pass in selenium.

818


When to use autoit?

988


What is a data driven framework?

987


What is the difference between verification and assertion?

817


What are the different types of locators in Selenium?

935


What are the challenges with selenium ide?

998


We do create a reference variable ‘driver’ of type webdriver

815


How does u get the width of the textbox?

887


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

852


Tell me how can we maximize browser window in selenium?

809


How to insert a breakpoint in selenium ide?

958