Answer Posted / elakkiya
In Testng, we can skip method like below,
@test(enabled=false)
public void test()
{
// body
}
In JUnit, we can skip method and as well Class like below,
Class:
--------
@Ignore
public class IgnoreMe {
@Test public void test1() { ... }
@Test public void test2() { ... }
}
Method:
-----------
@Ignore
@Test
public void something() { ...
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of creating a reference variable- 'driver' of type webdriver instead of directly creating a firefoxdriver object or any other driver's reference in the statement webdriver driver = new firefoxdriver();?
Mention 5 different exceptions you had in selenium web driver?
How is driver.close()command different from driver.quit command?
How to export the tests from selenium ide to selenium rc in different languages?
How can the user get a text from a web element?
Explain selenium waitfor commands ?
What are the prerequisites to run selenium webdriver?
What do you mean by xpath?
how to handle staleelementreferenceexception?
When do you use selenium grid?
How can I read test data from excels?
Explain what are the limitations of selenium ide?
Can you run the tests registered with Selenium IDE in other browsers?
What are the different keyboard operations that can be performed in selenium?
How to check which option in the dropdown is selected?