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

Hi Shubham,

It depends on how you have structured your framework. It seems like you have a Test Case for a Test Suite and you are running that Test Suite Test Case to run all the child test cases. Try building a Test Suite with the help of TestNg Xml, include all of your tests in that xml and include the try catch code block in all of your test cases, hopefully you should not face any issue.

For any help on TestNg, please visit our website and look for TestNg Framework (www.toolsqa.com)

Rest try to send me your code, but make sure you do not paste all the code, only the concerned statements.

Best Regards,
Lakshay Sharma

Professor Answered on September 18, 2014.
Add Comment

Your Answer

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