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

How can we inspect the web element attributes in order to use them in different locators?

924


Using selenium how can you handle network latency?

1073


Explain how you can switch between frames?

998


What are the main advantages of selenium grid?

976


What is the difference between selenium and qtp?

908


Why testers should opt for selenium and not qtp?

896


How to highlight element using selenium webdriver?

1021


What is testng?

965


Why do you need session handling while working with selenium?

915


What are the different Exceptions in selenium?

960


How does one calculate the number of rows using selenium 2.0?

1056


How to mouse hover on a web element using webdriver?

971


What is the difference between “type” and “typeandwait” command?

1522


Tell us what selenium components do you know?

1024


What is htmlunitdriver?

959