RE: How to ignore a tastcase which fails and start executing further on a same TESTSUIT

Hello All,
I have a Test-suit contain 100 testcases.
Now if suppose my 5 testcase fail then it jump to exception block and my testsuit stop executing for further testcases of same testsuit.
Is there is any way that even if any testcase fails and jump to exception block then TestNG ignore that testcase and start executing further Test cases of respective Testsuit.

shubham Train Asked on September 16, 2014 in Selenium WebDriver.
Add Comment
4 Answers

Thanks lakshay.

But I have already use these statement and its only help me to log the errors.

Suppose some element is not found out in testcase5 from my TESTSUIT1 . Now How I can handle this Exception. In this case the my Entire TestSuit stop and it will start executing my TESTSUIT2 testcases.

My requirement is that I want to skip that testcase5 at runtime only(Because we cant predict which element and on which testcase the error going to come ) and it should start executing testcase6 from my TESTSUIT1 again(While if framework store the error of testcase5 in log as well).

Train Answered on September 18, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.