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 dropdown?
2 Answers Cryptopy Technologies,
What do you know about Selenese?
What are the different type of locators?
How do you read data from excel?
Tell me do you know a way to refresh browser by using selenium?
What is same origin policy? How you can avoid same origin policy?
How to invoke an application in webdriver?
Explain what is assertion in selenium and what are the types of assertion?
What are the annotations available in testng?
Explain the line of code webdriver driver = new firefoxdriver()?
what are challenges you faced in your last project?
Explain how to iterate through options in test script?