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 main advantages of automation testing?
What programming languages does Selenium use?
How do you get the attribute of the web element?
what is the difference between driver.get() and driver.navigate.to(“url”)?
How to fetch the current page url in selenium?
Define selenium 2.x?
What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?
What are the significant changes/upgrades in various selenium versions?
What is the price of selenium license per server?
What are the different types of navigation commands?
Using selenium how can you handle network latency?
Can we use selenium grid for performance testing?