Forum Discussion
deepesh_jain
15 years agoFrequent Contributor
I don't think you can use goto statement for this, unless you are validating a parameter from a response. Conditional goto statment will validate an xpath expression and will transfer the control to a test step based on the evaluation of xpath expression.
So if you are expecting a specific value in a specific xpath expression on your 5th run, you can provide that as an expression, and put the condition so that unless that satisfies the control always goes back to step 1. Once this expression is satisfied, it can come out of loop.
If you need to loop the test steps in a test case 5 time without validating the xpath expression in your response, the best bet is to use data source and data source loop available in soapUI Pro.
Other than that, you will have to rely on Groovy script.
So if you are expecting a specific value in a specific xpath expression on your 5th run, you can provide that as an expression, and put the condition so that unless that satisfies the control always goes back to step 1. Once this expression is satisfied, it can come out of loop.
If you need to loop the test steps in a test case 5 time without validating the xpath expression in your response, the best bet is to use data source and data source loop available in soapUI Pro.
Other than that, you will have to rely on Groovy script.