在远程Teamcity构建代理上运行硒自动化测试 [英] Running selenium automation tests on remote teamcity build agent

查看:98
本文介绍了在远程Teamcity构建代理上运行硒自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们开始使用Teamcity进行构建管理,并使用ANT脚本运行selenium junit测试.测试成功运行,并显示为在teamcity控制台上通过. 如果我登录到构建代理机器,则在运行测试时,我期望能够看到浏览器窗口打开,并且填充和提交字段.我没有看到Firefox浏览器窗口打开,想知道我的测试如何通过.当我在Eclipse中运行相同的测试脚本时,将打开Firefox浏览器窗口,并填充网页字段.

Recently we started using Teamcity for build management and to run selenium junit tests using ANT scripts. The tests are running successfully and shown as passed on teamcity console. When the tests are running if I login to the build agent machine, I was expecting to be able to see the browser window open and fields getting populated and submitted. I don't see the Firefox browser window open, wondering how my tests are passing. When I run the same test scripts in Eclipse, the Firefox browser window is opened and the web page fields get populated.

感谢您的评论.

推荐答案

因为TeamCity构建代理是作为Windows服务运行的.因此,您将无法看到实际的GUI.

Because TeamCity build agents are run as a Windows service. So you won't be able to see the actual GUI.

如果要更改它,请更改您的构建代理安装.

If you want to change it, please change your build agent installation.

  • Installing and Configuring the TeamCity Server
  • How can I run a Windows GUI application on as a service?
  • Selenium Tests run in the background when TeamCity CI is run as a Windows service
  • Running Automated GUI tests with TeamCity

这篇关于在远程Teamcity构建代理上运行硒自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆