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 |
How can you find if an element in displayed on the screen?
Is the firefoxdriver a class or an interface?
What are the different exceptions you got when working with webdriver?
What is the difference between selenium and qtp?
What is the significance of testng.xml?
For database testing in selenium webdriver what api is required?
Give ide's main parts and components?
If the test case frame contains several test cases, how can one execute just the selected one of those test cases?
How to insert a comment in selenium ide?
Tell me could cookies be deleted in selenium?
Explain what are the different types of locators in selenium?
Tell me can selenium handle windows based pop-up?