CommandLine Tools

TestRunner

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:

switchdescription
eThe endpoint to use when invoking test-requests, overrides the endpoint set in the project file
sThe TestSuite to run, used to narrow down the tests to run
cThe TestCase to run, used to narrow down the tests to run
uThe username to use in any authentications, overrides any username set for any testrequests
pThe password to use in any authentications, overrides any password set for any testrequests
dThe 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.


Back to the Overview