解決CI調用Ranorex運行web測試失敗的問題

安裝TeamCityBuild或QuickBuild作爲服務啓動後,運行web測試,會彈出"交互式服務對話框檢測"對話框,Ranorex無法識別windows控件,無法自動完成web測試,運行測試失敗。


解決辦法:

查看官方博客,

To run Ranorexautomation on your build agents, you have to make sure not to start them as awindows service since a service does not have sufficient rights to startUI-applications. If you have installed the Build Agent as a service, open the‘Services’ tool (which is part of the ‘Administrative Tools’ in the controlpanel), choose ‘TeamCity Build Agent’ service, stop the service, and set the‘Startup type’ to disabled.

The TeamCity BuildAgent can be started manually using following command (from the installationfolder of the Build Agent):

.\bin\agent start

有介紹到windows服務沒有足夠權限運行UI測試,需要將CI服務設置成非自動啓動,CI採用命令行啓動。

TeamCity:

.\bin\agent start 

QuickBuild:

.\bin\server.bat console

然後CI就可以調用Ranorex運行web測試了。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章