Forum Discussion

rodgersh's avatar
rodgersh
Occasional Contributor
14 years ago

How to access mock service started by maven plugin

I am starting my mock service using the maven soapui plugin. I start it in the pre-integration-test phase and the log output verifies the SoapUIMockServiceRunner started the mock service.

I then run my soapui test suite from the same maven pom file, where I run it in the integration-test phase using the maven soapui plugin. The test starts up fine.

My test sends a request to the mock service. I want to verify this request is received by the mock service using a Groovy Script test step in my test suite. How do I programmatically access the mock service since it was started by a different SoapUI runner (SoapUIMockServiceRunner vs. SoapUITestCaseRunner)?

(Note, the mock service may or may not be in the same soapui project file. In this case it is, but I know that I will have cases where it will not be)

Thanks.
No RepliesBe the first to reply