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
What evaluation can selenium do?
How to switch between frames in selenium?
How to perform drag and drop action in selenium webdriver?
What is the command to connect a node to the selenium grid?
How to fetch the current page url in selenium?
How to check whether a text is underlined or not?
What is the object repository?
What the webdriver supported mobile testing drivers do you know?
How you can login into any site if it’s showing any authentication popup for password and username?
What are the advantages and disadvantages of selenium ?
How to login to any site if it’s showing any authentication popup for
How to clear the text in the text box using selenium webdriver?
What are junit annotations?
How can we handle web-based pop-up?
What do we mean by selenium 1 and selenium 2?