Forum Discussion
- MikeDallyContributor
Does the response come back with some kind of message content? You can write a Groovy script to retry the test case if the response contains a particular message or code if this is the case?
- PerpetualNotionNew Contributor
No - unfortunately I get a java socket timeout exception:
Error getting response; java.net.SocketTimeoutException: Read timed out
- rupert_andersonValued Contributor
Hi,
Sorry to drop in Mike, but as well as a Groovy option (which could still work e.g. if you set a successfulResponse property in a script Assertion based on the proper response being received and loop if this is false), have you considered the Conditional Goto TestStep:
http://www.soapui.org/functional-testing/teststep-reference/conditional-goto/conditional-goto.html
You could maybe use a boolean XPath expression to loop if an element of a proper response is not found:
http://stackoverflow.com/questions/1887077/returning-a-boolean-from-an-xpath-expression
Just another option maybe thats more out-of-the-box?
Cheers,
Rup
- edauteuilEstablished Member
I realize this post is a bit old but I am wondering if a solution was found here? I am running into the same issue and looking for a reliable solution.
Thanks!
- nmraoChampion Level 3Would mind posting your observations on the issue that you face? Appreciate if you can provide more details of the issue which can help other to understand it better manner and try reproducing on their end. Would you mind opening a new thread instead?
Related Content
- 5 years ago
- 7 years ago
Recent Discussions
- 15 years ago