rodgersh
14 years agoOccasional Contributor
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.
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.