I want to run many SOAPUI project xmls using Gradle script, in Linux -
i want run soapui project xmls using gradle script. gradle script should read project xmls soapuiinputs.properties file , run automatically all. please guide me step step how create gradle script run soapui projects in linux server.
note: use soapui version 5.1.2.
probably simple way call soapui testrunner
directly gradle exec
task, can cli.
in gradle can define follow tasks (note try on windows same on linux ask you've change paths):
// define exec path class soapuitask extends exec { string soapuiexecutable = 'c:/some_path/soapui-5.2.1/bin/testrunner.bat' string soapuiargs = '' public soapuitask(){ super() this.setexecutable(soapuiexecutable) } public void setsoapuiargs(string soapuiargs) { this.args = "$soapuiargs".trim().split(" ") list } } // execute soapui task executesoapui(type: soapuitask){ // pass project path argument, // note " needed soapuiargs = '"c:/location/of/project.xml"' }
to run task use gradle executesoapui
.
this task runs soapui project, testrunner
supports more parameters can pass soapuiargs
string in executesoapui task, take here.
instead of if want deal more complex testing there gradle plugin launch soapui project, take on here
hope helps,
Comments
Post a Comment