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 handle https website in selenium? Or how to accept the ssl untrusted connection?
What is the purpose of deselecting all() method?
How can we get a text of a web element?
How can I minimize the browser window which has been launched via Selenium Webdriver?
How does one capture a page title in selenium 2.0?
How can we deal with pop-up windows based on?
What is the difference between assert and verify in selenium?
How to use regular expressions in selenium?
Explain how you can switch back from a frame?
What are the Different Types of Waiting in the WebDriver?
How can you find broken links in a page using selenium webdriver?
Mention 5 different exceptions you had in selenium web driver?