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 assertion in selenium?
What kind of testing does selenium support?
Tell us how can you run selenium server other than the default port 4444?
What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?
What do you mean by selenese?
How to handle a dropdown in selenium webdriver?
How to check if a text is highlighted on the page ?
What is the main difference between the close() and quit() methods?
How to get a text of a web element?
What is pom (page object model)? What are its advantages?
What is an absolute xpath?
What are selenium 1 and selenium 2?
What is the use of get options () method?
What is testng?
How to hover the mouse on an element?