What is the difference between TESTNG and JUNIT? List out Annotations?
Answer Posted / 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 |
Post New Answer View All Answers
Mention what is listeners in selenium webdriver?
What is the difference between “type” and “type and wait for” command?
How to hover the mouse on an element?
What is the difference between selenium and sikuli?
What is same origin policy and how it can be handled?
Is selenium server needed to run selenium webdriver scripts?
Differentiate between ‘/’ and ‘//’.
How to capture screenshot in webdriver?
Mention what are the challenges in handling ajax call in selenium webdriver?
How does one store the current url using selenium 2.0?
How to find whether an element is displayed on the web page?
How to mouse hover on a web element using webdriver?
What are the advantages of selenium?
How to execute javascript in selenium?
What are the different mouse actions that can be performed?