Karma无法在Team City构建中启动IE

编程入门 行业动态 更新时间:2024-10-26 09:17:59
本文介绍了Karma无法在Team City构建中启动IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Karma在Team City下运行时无法启动IE。我可以登录到服务器并从命令行运行测试,但IE总是从Team City失败:

Karma is failing to launch IE when running under Team City. I can log onto the sever and run the tests from the command line, but IE always fails from Team City:

[Step 6/6] INFO [karma]: Karma v0.12.37 server started at localhost:9876/ [14:45:09][Step 6/6] INFO [launcher]: Starting browser Chrome [14:45:09][Step 6/6] INFO [launcher]: Starting browser Firefox [14:45:09][Step 6/6] INFO [launcher]: Starting browser IE [14:45:25][Step 6/6] INFO [Firefox 38.0.0 (Windows 7 0.0.0)]: Connected on socket KeIupP7qx6Dn9ghM0KsX with id 75681035 [14:45:32][Step 6/6] INFO [Chrome 43.0.2357 (Windows 7 0.0.0)]: Connected on socket DORZdoNLQzPHx4ZT0KsY with id 61077412 [14:45:37][Step 6/6] INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket 1p4cEWOQp6eKrUdO0KsZ with id 27572902 [14:45:47][Step 6/6] WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (1 times), because no message in 10000 ms. [14:45:47][Step 6/6] Chrome 43.0.2357 (Windows 7 0.0.0) [14:45:47][Step 6/6] Firefox 38.0.0 (Windows 7 0.0.0) [14:45:48][Step 6/6] Process exited with code 1

我尝试将 browserNoActivityTimeout 增加到100000,但这没有帮助。

I tried increasing the browserNoActivityTimeout to 100000, but that didn't help.

我们在Windows 2008 R2上运行Team City 8.1.2。

We are running Team City 8.1.2 on Windows 2008 R2.

任何建议都将不胜感激。

Any advice would be appreciated.

推荐答案

问题是IE从未在我们用于Team City代理的服务帐户下运行。它被卡在首次运行浏览器时打开的IE选项对话框中。一旦我运行IE并接受它在构建服务器上运行的默认设置:

The issue was that IE had never been run under the service account we use for the Team City agent. It was getting stuck on the IE options dialog that opens when the browser is first run. Once I ran IE and accepted the default settings it runs on the build server:

INFO [karma]: Karma v0.12.37 server started at localhost:9876/ [09:58:42]INFO [launcher]: Starting browser Chrome [09:58:42]INFO [launcher]: Starting browser Firefox [09:58:42]INFO [launcher]: Starting browser IE [09:59:02]INFO [Firefox 38.0.0 (Windows 7 0.0.0)]: Connected on socket 1uAt8J2B8NPFj66W8Mib with id 61577635 [09:59:02]INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket RPZgBEUhUGW2wD2h8Mic with id 95872295 [09:59:07]INFO [Chrome 43.0.2357 (Windows 7 0.0.0)]: Connected on socket mZzpKwFkIPpGY3vC8Mid with id 7944928 [09:59:08]Chrome 43.0.2357 (Windows 7 0.0.0) [09:59:08]Firefox 38.0.0 (Windows 7 0.0.0) [09:59:08]IE 11.0.0 (Windows 7 0.0.0) [09:59:08]Process exited with code 0

更多推荐

Karma无法在Team City构建中启动IE

本文发布于:2023-11-17 05:32:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609003.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Karma   Team   City

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!