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
How to configure selenium web driver in eclipse?
What is group test in testng?
How to submit a form using selenium webdriver?
What is the difference between getwindowhandles() and getwindowhandle()?
How you are integrating cucumber feature files with step files?
Explain what is selenium ide?
What is the difference between poi and jxl jar?
How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?
Mention what is the difference between selenium and sikuli?
Tell me how can we launch different browsers in selenium webdriver?
What is the selenium ide and what is it used for?
What are its advantages of pom?
What is selenium-rc (remote control) ?
What is fluent wait in selenium?
What happen if you mix both thread.sleep and webdriver waits in a selenium script?