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 does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.
How can we handle web-based pop-up?
What are the different types of wait statements in selenium webdriver?
How do you get the attribute of the web element?
What are its advantages of pom?
What is the difference between @factory and @data provider annotation?
Could you explain the line of code webdriver driver = new firefoxdriver()?
Explain xpath absolute and xpath attributes.
What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?
Do you know what are the main advantages of selenium grid?
How would you test your element locator?
What is object repository in selenium webdriver?
Explain the difference between assert and verify commands?
What are the languages supported by webdriver?
Describe a framework. List some of the common automation frameworks.