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
How can the user get a text from a web element?
Mention why do you need session handling while working with selenium?
How to select value in a dropdown?
What you know about selenium?
What will be the different kinds of locators in selenium?
Explain the meaning of assertion in selenium and what are the types of assertion?
How to login to any site if it’s showing any authentication popup for
What are driver.close and driver.quit in WebDriver? Which is more preferable?
What are the annotations used in testng?
When should I use Selenium IDE?
Explain selenium waitfor commands ?
How can you use the recovery scenario in selenium webdriver?
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();?
What is assertion in selenium?
Explain me how many types of webdriver apis are available in selenium?