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 ? | 13 Yes | 0 No |
What are core extension?
sorting java array
What are the different exceptions you have faced in selenium webdriver?
How to capture screenshot in webdriver?
What is selenese and what are the types of selenese?
How you can debug the tests in selenium ide?
What are startpoints and breakpoints in selenium?
What are driver.close and driver.quit in WebDriver? Which is more preferable?
How to assert text of webpage using selenium 2.0?
What kind of keyboard operations can be performed in selenium?
Explain how you will login into any site if it is showing any authentication popup for username and password?
How to handle alerts in selenium webdriver?