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 programming languages supported by selenium webdiver?
What are the advantages of rc?
What is webdriver wait in selenium webdriver?
Explain what are the junits annotation linked with selenium?
List out different types of locators?
Which all browsers are supported by selenium webdriver?
What is the difference between “type” and “type and wait for” command?
How many exemptions do you know in selenium webdriver?
How are selenium ide, webdriver and selenium rc different from each other?
Can we use selenium grid for performance testing?
Write the code to double click an element in selenium?
Tell me how you can find broken images in a page using selenium web driver?