啓發與@aristotll的答案)
loadtestrunner.bat
運行下面的類:com.eviware.soapui.tools.SoapUITestCaseRunner
從時髦,你可以調用同一個這樣的:
com.eviware.soapui.tools.SoapUITestCaseRunner.main([
"-ehttp://localhost:8080/services/MyService",
"c:\projects\my-soapui-project.xml",
"-r",
"-f",
"folder_name"
])
但該方法main
calls System.exit() ...
和soapui會在這種情況下退出。
讓我們更深入:
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:沒有測試的 - 只是一個想法
我有腳本,可以執行測試,但這個問題不能收集統計信息。 – Rao