What is the difference between TESTNG and JUNIT? List out Annotations?
Answer / 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 |
How to enforce the title of the website?
What is the difference between @factory and @data provider annotation?
How to configure selenium web driver in eclipse?
Explain how you can login into any site if it’s showing any authentication popup for password and username?
Tell me can we use selenium rc for tests driving on two different browsers on one operating system without selenium grid?
Is it possible to automate the captcha using selenium?
Can we use selenium rc to drive tests on two different browsers on one operating system without selenium grid?
How to developer selenium test cases?
Does the selenium ide have any drawbacks?
What is exception test in selenium?
What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?
Tell me can selenium handle windows based pop-up?