Karma fails to launch IE on Team City build

前端 未结 2 1930
庸人自扰
庸人自扰 2021-01-25 03:37

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:



        
2条回答
  •  半阙折子戏
    2021-01-25 04:29

    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 http://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
    

提交回复
热议问题