Please note that this project is no longer maintained.
The plugin provides tasks for running SoapUI tests and mocks during a Gradle build.
The plugin is built upon the byte-shifter soapui plugin. This implementation supports running multiple test suits in one command.
You can find an example here
This plugin is now hosted in the Gradle Plugin Portal. Please see their website for more information:
apply plugin: 'org.urbanbyte.soapui'
The soapui
plugin pre-defines the following tasks out-of-the-box:
Task Name | Type | Description |
---|---|---|
soaptest | TestTask | Runs the SoapUI tests as specified by the plugin properties. Internally invokes the SoapUITestCaseRunner class as described there. |
soapload | LoadTestTask | Runs the SoapUI loadtests as specified by the plugin properties. Internally invokes the SoapUILoadTestRunner class as described there. |
soaptool | ToolTask | Runs the specified and configured code-generation tool. Internally invokes the SoapUIToolRunner class as described there. |
soapmock | MockServiceTask | Runs the specified and configured code-generation tool. Internally invokes the SoapUIMockServiceRunner class as described there. |
To configure the SoapUI test task you can choose to set the following properties within the test
closure of the
soapui
extension:
projectFile
: Specified the name of the SoapUI project file to usetestSuite
: Specifies the name of the TestSuite to runendpoint
: Overrides the service endpoint to be invoked by any TestRequestshost
: Overrides the target host:port to be invoked by any TestRequestsusername
: Overrides the username used by any TestRequests runpassword
: Overrides the password used by any TestRequests rundomain
: Overrides the domain used by any TestRequests runprintReport
: Controls if a small test report should be printed to the console (true/false)outputFolder
: Set which folder results/reports are saved tojunitReport
: Turns on creation of JUnit-reports, (true/false)exportAll
: Controls if all test requests should be exported (default only exports errors), (true/false)settingsFile
: Specifies SoapUI settings file to usewssPasswordType
: Specifies WSS password typeprojectPassword
: Specifies password for encrypted projectsettingsFilePassword
: Specifies password for encrypted settings fileglobalProperties
: Sets global propertiesprojectProperties
: Sets project propertiessaveAfterRun
: Saves project file after runtestFailIgnore
: Ignore failed tests.
To configure the SoapUI load test task you can choose to set the following properties within the load
closure of the
soapui
extension:
projectFile
: Specified the name of the SoapUI project file to usetestSuite
: Specifies the name of the TestSuite to runtestCase
: Specifies the name of the TestCase to runloadTest
: Specifies the name of the LoadTest to runlimit
: Overrides the limit of executed LoadTestsendpoint
: Overrides the service endpoint to be invoked by any TestRequestshost
: Overrides the target host:port to be invoked by any TestRequestsusername
: Overrides the username used by any TestRequests runpassword
: Overrides the password used by any TestRequests rundomain
: Overrides the domain used by any TestRequests runprintReport
: Controls if a small test report should be printed to the console (true/false)outputFolder
: Set which folder results/reports are saved tosettingsFile
: Specifies SoapUI settings file to usewssPasswordType
: Specifies WSS password typeprojectPassword
: Specifies password for encrypted projectsettingsFilePassword
: Specifies password for encrypted settings filesaveAfterRun
: Saves project file after runthreadcount
: Number of threads in loadtest.
projectFile
: Specified the name of the SoapUI project file to useiface
: Specifies the interface to generate fortool
: Specifies the tool(s) to run, a comma-separated list of axis1, axis2, dotnet, gsoap, jaxb, wstools, wsconsume, ora, wscompile, wsi, wsimport, xfire or xmlbeanssettingsFile
: Specifies SoapUI settings file to useprojectPassword
: Specifies password for encrypted projectsettingsFilePassword
: Specifies password for encrypted settings fileoutputFolder
: Set which folder results/reports are saved to
projectFile
: Specified the name of the SoapUI project file to usemockService
: Specified the MockService to runport
: The local port to listen on, overrides the port configured for the MockServicepath
: The local path to listen on, overrides the path configured for the MockServicenoBlock
: Turns off blocking when MockRunner has startedsettingsFile
: Specifies SoapUI settings file to useprojectPassword
: Specifies password for encrypted projectsettingsFilePassword
: Specifies password for encrypted settings filesaveAfterRun
: Saves project file after run
soapui {
test {
projectFile = 'sample-soapui-project.xml'
testSuite = ['TestSuite1', 'TestSuite2']
printReport = true
junitReport = true
}
load {
projectFile = 'sample-soapui-load-project.xml'
printReport = true
}
tool {
projectFile = 'sample-soapui-tool-project.xml'
iface = 'IOrderService'
tool = 'wsi,axis1,axis2'
}
}
- Issue Tracker: https://github.com/creising/soapui-gradle-plugin/issues
- Source Code: https://github.com/creising/soapui-gradle-plugin
The project is licensed under the MIT license.