inspired by @aristotll's answer)
loadtestrunner.bat runs the following class: com.eviware.soapui.tools.SoapUITestCaseRunner
from groovy you can call the same thing:
com.eviware.soapui.tools.SoapUITestCaseRunner.main([ "-ehttp://localhost:8080/services/MyService", "c:\projects\my-soapui-project.xml", "-r", "-f", "folder_name" ])
but the main method calls System.exit () ...
and soapui will come out in this case.
so let's go deeper:
def res = new com.eviware.soapui.tools.SoapUITestCaseRunner().runFromCommandLine([ "-ehttp://localhost:8080/services/MyService", "c:\projects\my-soapui-project.xml", "-r", "-f", "folder_name" ]) assert res == 0 : "SoapUITestCaseRunner failed with code $res"
PS: not tested - just an idea
source share