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 |
What are the advantages of using git hub for selenium?
How to export the tests from selenium ide to selenium rc in different languages?
How you can find broken images in a page using selenium web driver?
How to get the title of the page?
How to type text in a textbox using selenium?
What You Know About Selenium Grid?
What is pom (page object model)?
How to set the size of browser window using selenium?
What are the advantages of pom?
Tell me how you can capture server side log selenium server?
How can we clear a text written in a textbox?
My application uses ajax heavily how do I use selenium rc to work with ajax operations?