所以,我對詹金斯從SLAVE1機上安裝了SoapUI併成功地推出使用下面的命令在我的項目的所有測試:了SoapUI掛在詹金斯夫婦後步驟
C:\Path_to_bin\testrunner.bat -f"C:\where_to_put_reports\reports" -I -A "C:\SoapUI\projects\project_name.xml"
在此期間,我也接受共享一些匿名數據,以便提示不再打斷我。所有這些都是通過RDC在一些USER1下完成的。
接下來,我創建了一個Jenkins作業,限制運行到該特定從屬並添加Windows批處理步驟,與上面非常相似。
我的假設是它應該沒有問題地運行。
什麼,我得到的是:
C:\Jenkins\workspace\project_name>C:\Path_to_bin\testrunner.bat -f"C:\where_to_put_reports\reports" -I -A "C:\SoapUI\projects\project_name.xml"
16:25:42,902 INFO [DefaultSoapUICore] Creating new settings at [C:\soapui-settings.xml]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
16:25:48,952 INFO [PluginManager] 0 plugins loaded in 12 ms
16:25:48,952 INFO [DefaultSoapUICore] All plugins loaded
僅此而已,因爲它似乎沒有效果永遠掛。 在批處理命令沒有產生積極作用之前添加start
或call
。
供參考:詹金斯正在另一個用戶下運行測試,而不是我正在登錄的用戶。
那麼,這可能是問題的根源或修復的來源?
我試着用Win Batch步驟手動將文件放在C:\ soapui-settings.xml中,並且它工作正常。 –