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 to configure selenium web driver in eclipse?

579


What is group test in testng?

613


How to submit a form using selenium webdriver?

602


What is the difference between getwindowhandles() and getwindowhandle()?

570


How you are integrating cucumber feature files with step files?

515






Explain what is selenium ide?

552


What is the difference between poi and jxl jar?

595


How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?

1140


Mention what is the difference between selenium and sikuli?

739


Tell me how can we launch different browsers in selenium webdriver?

563


What is the selenium ide and what is it used for?

639


What are its advantages of pom?

595


What is selenium-rc (remote control) ?

614


What is fluent wait in selenium?

617


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

553