Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is assertion in selenium?

916


What kind of testing does selenium support?

911


Tell us how can you run selenium server other than the default port 4444?

845


What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?

838


What do you mean by selenese?

894


How to handle a dropdown in selenium webdriver?

3000


How to check if a text is highlighted on the page ?

1066


What is the main difference between the close() and quit() methods?

837


How to get a text of a web element?

907


What is pom (page object model)? What are its advantages?

852


What is an absolute xpath?

1008


What are selenium 1 and selenium 2?

877


What is the use of get options () method?

929


What is testng?

898


How to hover the mouse on an element?

885