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 create object repository in selenium?

1019


What exactly is the price of selenium test-suite?

919


How to validate the dropdown value contains specific value or not?

886


What’s the difference between borland silk evaluation and selenium?

991


What is the difference between captureentirepagescreenshot and capturescreenshot?

1175


Why should selenium be selected as a test tool?

1170


Other than the default port 4444 how you can run selenium server?

897


What is selenium 2.0?

1263


How to perform drag and drop action in selenium webdriver?

918


What is selenium? What are different selenium components?

1032


What methods of robot class do you know?

1067


How do I start the browser using WebDriver?

1178


How to skip a method or a code block in testng?

3746


Explain xpath.

1013


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

962