smartTest
14 years agoContributor
Groovy Script when Response Contains 'X' GoTo 'Step Y'
A colleague has asked me a question about something he is trying to do in SoapUI to make his Load testing easier. He is looking for a Groovy script that will do something like the below:
If... the preceeding response step
Contains String...... HTTP response
Then
GoTo the preceeding resopnse step and try again
To a maximum of 'X' times
I'm not bad at editing scripts, but have no idea where to start with writing this one. Has anyone had to do something similar at any time and do you have a script I would use?
I'm going to set a challenge for our developers, but wondered if anyone had come across this one before..
thanks in advance

If... the preceeding response step
Contains String...... HTTP response
Then
GoTo the preceeding resopnse step and try again
To a maximum of 'X' times
I'm not bad at editing scripts, but have no idea where to start with writing this one. Has anyone had to do something similar at any time and do you have a script I would use?
I'm going to set a challenge for our developers, but wondered if anyone had come across this one before..
thanks in advance
