How to skip on failed cases

  • nagarajan sreenivasan

    Is there a way to skip the failed cases?I have 10 test cases in a  script and i want to skip onfail in the compareTo command. Is there a graceful way to do it other than exit.

  • Robert Pes

    Robert Pes - 2010-05-19

    It's just a matter of script design. We usually recommend to put each script (test case) into a single file.

    If you need to keep the test cases in a single file, an option is to put each test case into a procedure. When you want to terminate the test case and jump up to the main script, you would call "Exit <number> scope=procedure". 

    Another good alternative is to switch to Java test scripts.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks