This is really helpful!
Now how do I modify the port using the API?
I would like to modify the SoapUIMockServiceRunner class to be able set the port dynamically, based on whether the port is already in use.
The MockService interface class has a getPort() method but not a setPort() method.
omatzura wrote: |
---|
Hi,
sorry, not at the moment, but we could make this available in a future version. Currently you can use the onStart script for the MockService to achieve this, since it is run before the mock is actually started, so setting the port from there (mockRunner.mockService.port = ...) should achieve this..
regards,
/Ole eviware.com
|