Internet explorer 特拉维斯CI+;酱汁连接&x2B;行为:无法让Internet Explorer运行测试

Internet explorer 特拉维斯CI+;酱汁连接&x2B;行为:无法让Internet Explorer运行测试,internet-explorer,automated-tests,behat,travis-ci,saucelabs,Internet Explorer,Automated Tests,Behat,Travis Ci,Saucelabs,我让Travis CI运行Sauce Connect来运行Behat测试。如果我告诉Sauce在Windows7上使用Firefox26,一切都会很好。但如果我将浏览器改为Internet Explorer(Sauce Labs在Windows 7上提供的三个版本中的任何一个,即IE8、IE9和IE10),那么它就无法工作 在上,它显示了一个长视频,其中除了之外没有显示任何内容。这是WebDriver服务器的初始起始页。页面顶部显示的错误消息显示浏览器屏幕截图为:测试在90秒内未看到新命令。超时

我让Travis CI运行Sauce Connect来运行Behat测试。如果我告诉Sauce在Windows7上使用Firefox26,一切都会很好。但如果我将浏览器改为Internet Explorer(Sauce Labs在Windows 7上提供的三个版本中的任何一个,即IE8、IE9和IE10),那么它就无法工作

在上,它显示了一个长视频,其中除了
之外没有显示任何内容。这是WebDriver服务器的初始起始页。
页面顶部显示的错误消息显示浏览器屏幕截图为:
测试在90秒内未看到新命令。超时。
但是,该屏幕广播的时间超过13分钟,因此它至少收到了一些命令,即使它从未对这些命令执行过操作

与此同时,在特拉维斯方面,我看到了:

2014-02-18 04:34:13,124 - Request started: GET http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab?f20efc77fc170e42
2014-02-18 04:34:13,211 - GET http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab?f20efc77fc170e42 -> 200 (88ms, 6356 bytes)
2014-02-18 04:34:13,417 - Request started: GET https://ieonline.microsoft.com/iedomainsuggestions/ie10/201402/suggestions.en-US
2014-02-18 04:34:13,503 - GET https://ieonline.microsoft.com/iedomainsuggestions/ie10/201402/suggestions.en-US -> 200 (87ms, 18176 bytes)
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated
我确实发现这可能是由非传统端口引起的,但我在端口443上通过HTTPS运行我的应用程序,所以这似乎不是问题所在

以下是我的Behat YAML配置文件,用于通过Sauce运行Internet Explorer 9:

# Use this profile to run tests on Sauce against the Travis-CI instance
default:
    context:
        class: "FeatureContext"
    extensions:
        Behat\MinkExtension\Extension:
            base_url: https://localhost
            default_session: saucelabs
            javascript_session: saucelabs
            saucelabs:
                browser: "internet explorer"
                capabilities:
                    platform: "Windows 7"
                    version: 9
我正在运行Behat2.5.2,尽管我在2.4.x中遇到了同样的问题


我不知道从这里去哪里,做什么。我的下一步是什么?

我在使用internet explorer和saucelabs时遇到了同样的问题。我发送了一个POST/session请求一个新会话,并期望返回一个{object}对象,该对象根据Json wire协议描述会话的功能。相反,除了标题之外,没有任何内容被发回:

                                                              Transfer-Encoding 
                                                                      "chunked" 
                                                                           Date 
                                                "Mon, 24 Feb 2014 15:19:06 GMT" 
                                                                   Content-Type 
                                                                    "text/html" 
                                                                       Location 
"http://ondemand.saucelabs.com/wd/hub/session/865ae26f6b5c461c9a30f3d1454f486a" 
                                                                         Server 
                                                                 "monocle/0.26" 
                                                                         status 
                                                                          "302" 
                                                                  statusMessage 
                                                                        "Found" 
该位置包含会话id,我可以从该id继续会话


从twitter提要上看,他们好像遇到了重定向循环的问题

我可以通过更改以下内容来解决此问题:

base_url: https://localhost

在Behat配置的Behat\MinkExtension\Extension:部分中

此主机名在.travis.yml文件中使用hosts加载项设置

addons:
  hosts:
    - realhostname

我相信这与通过sauce connect for localhost进行的额外代理有关,这在下面提到:我不知道为什么这只影响IE,但这个解决方案似乎可以工作。

似乎端口443应该可以工作,但我很好奇您是否在非SSL端口(如8000)上看到相同的行为?更改应用程序端口和检查是否容易?使用SSL尝试了端口8000,得到了相同的结果:与Firefox兼容,而不是IE。也可以尝试在端口8000上使用HTTP而不是HTTPS,但这一更改更复杂。。。
addons:
  hosts:
    - realhostname