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
What is the purpose of creating a reference variable- ‘driver’ of type
What is the command to insert text into the HTML text box using Selenium?
What do we mean by selenium 1 and selenium 2?
What do you mean by xpath?
What you know about selenium?
How to validate the dropdown value contains specific value or not?
How to send alt/shift/control key in selenium webdriver?
Tell me what is a node in selenium grid?
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?
What exactly is selenium remote-control (rc) tool?
What types of cases can be automated with Selenium?
What is Dynamic xpath in selenium ?
What are the different ways of locating a web element in selenium?
What are some of the advantages of selenium grid?
What is the selenium's recording language?