Forum Discussion

FSay's avatar
FSay
New Contributor
17 years ago

Re: soapui-pro mock response sources

Bonjour,

Question 1 :
Does this means that there is no support for groovy script for "mock response" when doing this way ?
It is working in soapui-pro, but I cannot make it work from my source code.

1) no, you can get full functionality from within your tests, but you will have to initialize the soapUI Pro core correctly


Can you give me any tips for this.

Merci,

Jean-Pierre

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    try adding the following before running your code:

    SoapUI.setSoapUICore( new SoapUIPro.SoapUIProCore( true, pathToSettingsFile );

    where pathToSettingsFile should point at the soapui-settings.xml file you want to use (this contains all global settings made under File\Preferences)

    You will need to all jars and the correct imports as well.

    Hope this helps!

    /Ole
    eviware.com