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
How to configure selenium web driver in eclipse?
What are the popular programming languages supported by selenium webdriver to write test cases?
Tell us how you can use recovery scenario with selenium?
What is junit annotations and what are different types of annotations which are useful?
What are its advantages of pom?
Mention what is selenium 3.0?
What is pom (page object model)?
Have you created any framework?
What are the webdriver supported mobile testing drivers?
Explain the different exceptions in selenium webdriver.
Which all browsers are supported by selenium webdriver?
What are the features of selenium ide ?
What are the advantages of using git hub for selenium?
What are the main advantages of selenium grid?
Which are the commands used for capturing the bitmaps?