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 |
List the parameters that one needs to pass in selenium.
Give the example for method overload in webdriver.
What is the selenium ide and what is it used for?
What are the advantages of selenium?
How can we create an object repository in selenium?
what is the difference between type keys and type commands?
How to get a text of a web element?
How to hover the mouse on an element?
Is the firefoxdriver a class or an interface?
List out the names of programming languages, browsers and operating systems that are supported by selenium.
How do you upload a file?
Is there a way for me to know all available options when I start selenium server?