Forum Discussion

ptrindade's avatar
ptrindade
Occasional Contributor
3 years ago

Soapui - Groovy continue loop

Hello!   Trying to implement something like this cycle: DataSource Request 1 - if response has property x = 1 , go to request 2 and continue loop flow - if response has property x = 2,  go to r...
  • ChrisAdams's avatar
    3 years ago

    Hi

    Try....

    testRunner.gotoStepByName("The Step Name");

    You may need some additional logic to not run Step3 if Step2 has ran, but with at above method, you should be able to work something out.

  • KarelHusa's avatar
    KarelHusa
    3 years ago

    ptrindade ,

    I believe ChrisAdams 's suggestion should work.

     

    Please make sure you are executing the tests on the test case level. If you only execute a single step, the execution flow will not continue.

     

    Regards,

    Karel