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 can we inspect the web element attributes in order to use them in different locators?
Using selenium how can you handle network latency?
Explain how you can switch between frames?
What are the main advantages of selenium grid?
What is the difference between selenium and qtp?
Why testers should opt for selenium and not qtp?
How to highlight element using selenium webdriver?
What is testng?
Why do you need session handling while working with selenium?
What are the different Exceptions in selenium?
How does one calculate the number of rows using selenium 2.0?
How to mouse hover on a web element using webdriver?
What is the difference between “type” and “typeandwait” command?
Tell us what selenium components do you know?
What is htmlunitdriver?