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 page factory?
What are the uses of findelement() and findelements()?
How do you get the attribute of the web element?
What is junit annotations and what are different types of annotations which are useful?
How to export selenium ide test suite to selenium rc suites?
What is the difference between driver.findelement() and driver.findelements() commands?
Write a code snippet to launch firefox browser in webdriver.
How to mouse hover an element in selenium?
Which webdriver implementation claims to be the fastest?
What are some advantages of selenium grid?
What are the challenges and limitations of selenium webdriver?
Tell us how can you run selenium server other than the default port 4444?
How to print Duplicate values in Drop Down List
Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please
What is the difference between implicit wait and explicit wait?