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

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

问题描述

最近我们开始使用 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.

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

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