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 to export the tests from selenium ide to selenium rc in different languages?
What kinds of tests can be run with the selenium framework?
What does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.
Which is the latest Selenium tool?
What is a node in selenium grid?
How to mouse hover an element in selenium?
What are the different Exceptions in selenium?
What are some expected conditions that can be used in explicit waits?
What is htmlunitdriver?
While injecting capabilities in webdriver to perform tests on a browser which is not supported by a webdriver what is the limitation that one can come across?
How do you add check points or verification points in selenium?
What is the selenium ide and what is it used for?
How to login to any site if it’s showing any authentication popup for
Do you know a way to refresh the browser by using selenium?
What are the advantages of selenium grid?