adspace


How do you Skip Test Case from execution?

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


Please Help Members By Posting Answers For Below Questions

Do you know how to locate a link using its text in selenium?

986


What’s selenese?

920


Have you created any framework?

1039


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197


what will be the first salary and what will be the hike in the salary?

929