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

当使用TeamCity或QuickBuild作为服务启动时,Ranorex无法正常运行Web测试,因为服务模式下缺少运行UI应用程序的权限。官方建议停止服务并禁用自动启动,改为手动通过命令行启动CI代理,如TeamCity的'.inagent start'或QuickBuild的'.inserver.bat console',以此解决Ranorex在CI上的自动化测试问题。
摘要由CSDN通过智能技术生成

安装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 manua

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值