Forum Discussion
testRunner.fail() fails the whole test case.
I have a test case where
- I run a http call,
- validate data returned by the call and then,
- iterate to the http call
This keeps on happening until a condition is satisfied.
The problem is, when i use testRunner.fail() it fails the whole test case and the iteration stops. I want to fail the current iteration and then move on to next iteration.
Is there a way.
- Manoj16 years agoVisitor
Hi All,
As am a beginner in the learning to Groovy, i request you to provide/suggest me the script should read the soap response and log information.
Thanks
Manoj
- Radford6 years agoSuper Contributor
You may find it better to start a new topic as your question doesn't really relate to the original message title. A new message will more likely get more appropriate answers. Anyway, to answer your question...
If you are new to Groovy I would suggest that you have a look at the pint and click Get Data functionality. This will allow you to easily retrieve the a SOAP response by creating the required Property Expansions for you.
Regarding logging, the Groovy Script editors provide a predefined variable "log" (See the section "Editing Groovy test step" of this page) to allow access to the Ready API script log, this object is a Log4J logger.
- AlexKaras6 years agoChampion Level 3
Hi Manoj,
https://community.smartbear.com/t5/SoapUI-Pro/Saving-request-and-response/td-p/171405 might help.
P.S. Your question has nothing related to the initial question asked in this thread. Which is pretty old, by the way. If you not able to find a discussion related to your problem within the Community, it is much better to start a new thread.