解决CI调用Ranorex运行web测试失败的问题

来源:互联网 发布:大数据趋势分析 编辑:程序博客网 时间:2024/05/30 04:06

安装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测试了。


0 0
原创粉丝点击