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
Explain what is selenium ide?
How selenium grid hub keeps in touch with rc slave machine?
Explain dataproviders in testng using an example. Can I call a single data provider method for multiple functions and classes?
What automation tools could be used for post-release validation with continuous integration?
What is desired capability? How is it useful in terms of selenium?
What does a knot do on the selenium grid?
How testing is better than junit?
What is implicit wait in selenium webdriver?
What is the difference between poi and jxl jar?
What is a relative xpath?
Mention what is selenium 3.0?
How to configure selenium web driver in eclipse?
What are the different types of wait statements in selenium webdriver?
What is soft assertion in selenium? How can you mark a test case as failed by using soft assertion?
What are some advantages of selenium grid?