Mock Response Groovy Script not working at startup
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008
01:53 AM
02-04-2008
01:53 AM
Mock Response Groovy Script not working at startup
Hi,
I've found that in sopaui-pro (2.0.1 and 2.0.2) the groovy script for mock response
is not working after the very first launch of the GUI.
The workaround is to just add a new line (for example) in the script window to make it (loaded ? and ) execute properly.
On a second hand I'm trying to run the same mock response from Java,
but the groovy script doesn't seem to be executed as well.
May be I'm wrong, but it seems to me that it is the same problem,
the xml groovy script element would not be loaded properly at startup ?
Of course there is no workaround from java.
Could you confirm this ?
Thanks,
Jean-Pierre
I've found that in sopaui-pro (2.0.1 and 2.0.2) the groovy script for mock response
is not working after the very first launch of the GUI.
The workaround is to just add a new line (for example) in the script window to make it (loaded ? and ) execute properly.
On a second hand I'm trying to run the same mock response from Java,
but the groovy script doesn't seem to be executed as well.
May be I'm wrong, but it seems to me that it is the same problem,
the xml groovy script element would not be loaded properly at startup ?
Of course there is no workaround from java.
Could you confirm this ?
Thanks,
Jean-Pierre
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008
02:14 AM
02-04-2008
02:14 AM
Hi Jean-Pierre,
thanks for your post. I tried to recreate this by creating a simple script in a mockresponse:
log.info( "hello" )
This seems to get executed ok, ie on the first request/mock-response after restarting soapUI and loading the project I can see the "hello" message in the groovy log. Can you share your script/project to see if you are doing anything special? (ole@eviware.com)
regards,
/Ole
eviware.com
thanks for your post. I tried to recreate this by creating a simple script in a mockresponse:
log.info( "hello" )
This seems to get executed ok, ie on the first request/mock-response after restarting soapUI and loading the project I can see the "hello" message in the groovy log. Can you share your script/project to see if you are doing anything special? (ole@eviware.com)
regards,
/Ole
eviware.com
