我在使用firefox进行watir-webdriver测试时遇到了麻烦,于是决定改用CHROME。这在本地开发盒上运行良好,但是当在我们的qa服务器上从团队城市启动时,我得到以下错误:
这是使用与开发盒相同的chromedriver。
Windows 2003 Server 32 bit
Chrome 14.0.835.186
chromedriver_win32_14.0.836.0.zip ChromeDriver server for win32
Ruby 1.8.7
watir-webdriver 0.3.4
selenium-webdriver 2.7.0
watir-page-helper 0.3.0
误差[15:57:06]: Started ChromeDriver
[15:57:06]: port=1203
[15:57:31]: .testautomationproxy_launcher.cc(89): error: Value of: app_launched
[15:57:31]: Actual: 1
[15:57:31]: Expected: AUTOMATION_SUCCESS
[15:57:31]: Which is: 0
[15:57:31]: Error while awaiting automation ping from browser process
[15:57:56]: .testautomationproxy_launcher.cc(223): error: Value of: automation()->GetBrowserWindowCount(&window_count)
[15:57:56]: Actual: false
[15:57:56]: Expected: true
我相信你的问题是你正在运行TeamCity代理作为一个服务,尝试手动运行代理使用的说明:http://confluence.jetbrains.net/display/TCD5/Setting+up+and+Running+Additional+Build+Agents#SettingupandRunningAdditionalBuildAgents-StartingtheBuildAgent
我没有使用TeamCity或Watir,但我从webdriver(使用selenium server)在windows服务下运行的相同错误消息。
对我来说有效的解决方案是在另一个帐户而不是系统帐户下运行服务。也许值得一试?