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

How do you get the width of the textbox?

517


How to test ajax application with selenium?

499


what is mutation testing, Difference between system and End to End testing,Give examples of bug having high priority but low severity except spelling mistakes and logo symbol.

1496


Can you use Selenium to test the Rest API or Web services?

495


What are its advantages of pom?

517






Why should selenium be selected as a test program?

472


What is same origin policy and how it can be handled?

459


How to write in a text box using Selenium?

513


How do you upload a file?

541


When should I use selenium grid?

568


Using selenium ide is it possible to get data from a particular html table cell?

641


Mention what is selenium 3.0?

484


How to get the number of frames on a page?

542


What is Selenium IDE?

553


Tell me can selenium handle windows based pop-up?

467