Forum Discussion

Borigor's avatar
Borigor
New Contributor
12 years ago

MockService properties setup

Hi all!

I'd like to fetch some data from DB for generating MockService Response.
I'he found only this glue где в soapui mockService сетать это значение dbHost
http://www.soapui.org/Service-Mocking/c ... a-database so far.
But it is unclear from tutorial:
1) is it custom or standard Mockservice propery 'dbHost'?
2) if yes, where should I set it while setting up MockService?
3) what other MockService properties can I use?

Thanks!

1 Reply

  • Borigor's avatar
    Borigor
    New Contributor
    I've managed to set up mentioned properties via MockService custom properties, and read them from groovy code, but usage is rather different from described in the mentioned article:
    Instead of

    def mockService = mockRunner.mockService

    I used

    def mockService = mockOperation.mockService


    and, important thing not mentioned in article, is http://www.soapui.org/Scripting-Propert ... ovy-script

    Thanks for your attention.
    Suppose, the issue is resolved.