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 create object repository in selenium?
What exactly is the price of selenium test-suite?
How to validate the dropdown value contains specific value or not?
What’s the difference between borland silk evaluation and selenium?
What is the difference between captureentirepagescreenshot and capturescreenshot?
Why should selenium be selected as a test tool?
Other than the default port 4444 how you can run selenium server?
What is selenium 2.0?
How to perform drag and drop action in selenium webdriver?
What is selenium? What are different selenium components?
What methods of robot class do you know?
How do I start the browser using WebDriver?
How to skip a method or a code block in testng?
Explain xpath.
What is the difference between close() and quit()?