The offline distribution of soapui available at sourceforge includes a utility for
running tests directly from the command-line (instead of using the
maven-plugin). The runner is defined in the
com.eviware.soapui.tools.SoapUITestCaseRunner
class and takes the path to the soapui project file containing
the tests and a number of options:
switch | description |
---|---|
e | The endpoint to use when invoking test-requests, overrides the endpoint set in the project file |
s | The TestSuite to run, used to narrow down the tests to run |
c | The TestCase to run, used to narrow down the tests to run |
u | The username to use in any authentications, overrides any username set for any testrequests |
p | The password to use in any authentications, overrides any password set for any testrequests |
d | The domain to use in any authentications, overrides any domain set for any testrequests |
The distribution contains a testrunner.bat script for running tests in the bin directory, for example;
testrunner.bat -ehttp://localhost:8080/services/MyService c:\projects\my-soapui-project.xml
will run all the tests defined in the my-soapui-project.xml file against the specified service-endpoint.