cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Mock service from groovy script

Occasional Contributor

Generate Mock service from groovy script

Hi ALL,

Please find below how to generate mock service from SOAPUI groovy script -


import com.eviware.soapui.impl.wsdl.WsdlProject
import com.eviware.soapui.impl.wsdl.mock.WsdlMockService

def project_name = testRunner.testCase.testSuite.project.name
def my_mock = createMockService("$project_name")



If you know the alternate method. please let me know.

Thanks,
Ashish
2 REPLIES 2
New Contributor

Re: Generate Mock service from groovy script

Which version of SoapUI did you use ? I see no such method in the API docs.

Community Hero

Re: Generate Mock service from groovy script

Any specific reason that you would like to use groovy script for the same? Can't you using default way?


Regards,
Rao.