Forum Discussion

SillyBear's avatar
SillyBear
New Member
13 years ago

Abort senario on condition

Hi there,

Using SOAPUI 4.5.1 I'm playing a scenario for a webservice. The response of the webservice *may* indicate I need to repeat a previous request (this probably sounds weirder than it really is).

After asserting the responses are valid, I'm using a Conditional Goto to decide the following test-step.
The Conditional Goto has two conditions:
1. The Condition required for taking the next step in the scenario;
2. The Condition required for repeating the previous step.

I'd like to abort the scenario and mark is as failed after a number of repeats. Any thoughts on how to do this?

Thanks!

1 Reply

  • nmrao's avatar
    nmrao
    Community Hero
    Hi,

    Never used conditional step.

    But probably have a script with counter some thing like

    if (counter > x) {
    throw new Error ('Exceeded re-tries')
    }

    Throwing error will lead to test case fail.

    Regards,
    Rao.