Forum Discussion
nmrao
11 years agoCommunity Hero
First thing is that, it is not related SOAPUI.
If you use for loop, it will loop thru the certain number of times. In case of while you may terminate after certain retries or based on time limit.
If you use for loop, it will loop thru the certain number of times. In case of while you may terminate after certain retries or based on time limit.
- rf11 years agoOccasional ContributorWell, it is related to the SOAPUI-TOOL. But I do feel the need to clarify my question. If I in a groovy-script start an infinite for-loop (or while-loop). Is there a way to kill the loop manually withou exiting SOAPUI. Sorry for any mispellings, I wrote this on my phone :-(
- nmrao11 years agoCommunity HeroI humbly disagree with your comment as that was just related to programming language, not sopaui, in fact not even touchin any soapui's api.
Any way, did you read the previous reply which has pointers how to do it?- rf11 years agoOccasional Contributor
You seem to misunderstand me here. I do know how a for-loop works (also do/while-loops). However in some cases one misses on the arguments, e.g. try typing for( ; ; ){ log.info( "HELLO WORLD!") } in a groovy-script in SoapUI. "HELLO WORLD!" will written in the log forever if you don't abort the loop manually. My question was, is there any way of doing this (aborting the loop) in SoapUI NG without killing the entire SoapUI process. E.g. an infinite loop can be canceled using ctrl+c when run in the command prompt.