Forum Discussion
nmrao
11 years agoCommunity Hero
Would you provide little more details of the problem? You mean to say you want to send the response using groovy script? Can you use like this? def trans = '''some foo more foo then bar''' if (trans) { return trans } else { return 'bar' }
- sedge5511 years agoNew Contributor
Thanks Rao
I have a groovy script to choose the mock service response as per this article:
http://www.soapui.org/soap-mocking/creating-dynamic-mockservices.html
and using the method in "5. Selecting the Response based on the request"
Using:
return "Simple Response"
I want to check whether "Simple Response" exists as a mock response in this mock service.
Thanks
Steve
- nmrao11 years agoCommunity HeroIs it possible to post your code?