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
Does selenium support mobile internet testing?
Write a code snippet to launch firefox browser in webdriver.
What is selenium 2.0?
List some of the common automation frameworks.
Define selenium 2.x?
List out the names of programming languages, browsers and operating systems that are supported by selenium.
What are some commonly encountered exceptions in selenium?
How to fetch the current page url in selenium?
What are the regular expression patterns available in selenium?
How to iterate through options in test script?
What distinguishes between an absolute and relative url in side?
What is testng assert and list out some common assertions supported by testng?
Mention what is the difference between selenium and sikuli?
What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?
Which are the browsers supported by selenium rc?