Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


How to skip on failed cases

  • 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

    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.