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

Mention why to choose python over java in selenium?

876


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

892


What is the significance of testng.xml?

3732


where do u maintain all your test cases in manual not in selenium

1288


Where to obtain selenium ?

935


What is the difference between poi and jxl jar?

952


What is the selenium's recording language?

980


Tell us what are the two modes of views in selenium ide?

868


How to press enter key on text box in selenium webdriver?

988


How to hover the mouse on an element?

940


Explain the difference between implicit wait and explicit wait.?

936


What are some advantages of selenium?

958


How to download a file in selenium webdriver?

1046


How can we move to a particular frame in selenium?

969


Mention what is intellij?

932