How to reach a mock service from a script step?
Hello,
I can't find how to reach one of the mock services on the ServiceV tab from a Groovy test step in the SoapUI Pro.
In my project there are 3 different mock services derived from the WSDL.
I'd like to have a possibility to start and stop a certain mock service during the test execution using script step in order to get asynchronous responses on the SOAP-requests I send to the tested system (see the attachment).
I tried to implement it this way:
def mockService = testRunner.testCase.testSuite.project.getMockServiceByName( "My MockService" )
mockService.start()
but it didn't work as I expected. I couldn't track the transaction log and on the ServiceV tab I couldn't see if any mock service was running.
Could you please help me with this issue?
Best regards
Maria