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
Explain what is the main difference between web-driver and rc?
Is there an htmlunitdriver for .net?
Can we edit recorded selenium ide test cases?
What are the types of waits available in selenium webdriver?
List the parameters that one needs to pass in selenium.
When to use autoit?
What is a data driven framework?
What is the difference between verification and assertion?
What are the different types of locators in Selenium?
What are the challenges with selenium ide?
We do create a reference variable ‘driver’ of type webdriver
How does u get the width of the textbox?
What happen if you mix both thread.sleep and webdriver waits in a selenium script?
Tell me how can we maximize browser window in selenium?
How to insert a breakpoint in selenium ide?