Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Running a test repeatedly

kamit2733
kamit2733 Posts: 16

Hi,

I am running a test and if it fails i want to go to the previous test and run the same test until it passes. Can someone let me know how to do it in Jython, if possible.

Thanks
Amit

Comments

  • jakubiak
    jakubiak Posts: 795 admin

    You should look at using test suite logic in SOAtest - you can set up tests that run until they pass without needing to write any scripts.

  • OmarR
    OmarR Posts: 233 admin
    edited November 2017

    Take a look at the post found here for reference. Test flow logic!

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭

    To clarify an earlier comment, the test suite editor has an option to setup a "While pass/fail" loop. This is specifically intended to accomplish running a test repeatedly until it passes (or fails). Please check the SOAtest User's Guide for details.