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 / naazneen

There are two ways to skip a test case :

1. By using testNg annotation , enabled=false

Eg: @Test(enabled=false)
Public void testCase(){
// code
}

2. By using "Skip Exception"

Eg: @Test
public void testCase1(){
throw Skip Exception(" skipping the test ");
}

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is selenium ide?

887


How selenium grid hub keeps in touch with rc slave machine?

882


Explain dataproviders in testng using an example. Can I call a single data provider method for multiple functions and classes?

889


What automation tools could be used for post-release validation with continuous integration?

945


What is desired capability? How is it useful in terms of selenium?

824


What does a knot do on the selenium grid?

970


How testing is better than junit?

875


What is implicit wait in selenium webdriver?

1062


What is the difference between poi and jxl jar?

945


What is a relative xpath?

1074


Mention what is selenium 3.0?

938


How to configure selenium web driver in eclipse?

949


What are the different types of wait statements in selenium webdriver?

3598


What is soft assertion in selenium? How can you mark a test case as failed by using soft assertion?

898


What are some advantages of selenium grid?

990