Running mocks from the command line

SoapUI mocks can easily be run from the command line using the bundled <SoapUI Home>/java/app/bin/mockservicerunner.sh script. This recipe covers running both a REST and SOAP mock in this way.

Getting ready

The only real prerequisites are a SoapUI install and a project with a mock that you'd like to run. In this recipe, we'll try out the mocks in the RESTMock-soapui-project.xml and SOAPMock-soapui-project.xml projects from the chapter 3 samples.

How to do it...

If you run mockservicerunner without any parameters, you will see the help options, as shown in the following screenshot:

How to do it...

Note

Pro version reporting options ...

Get SoapUI Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.