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 to pass parameters using testng.xml?
How will you verify the specific position of an web element
Explain the difference between assert and verify commands?
Which is the super interface of webdriver?
While injecting capabilities in webdriver to perform tests on a browser which is not supported by a webdriver what is the limitation that one can come across?
How to perform right click using webdriver?
What are the challenges and limitations of selenium webdriver?
Explain dataproviders in testng ?
Explain me what could be the cause of selenium webdriver test to fail?
What’s selenese?
List the different testing types supported by selenium.
What is page object model in selenium?