9

我有Travis-CI运行Sauce Connect来运行Behat测试。如果我告诉Sauce在Windows 7上使用Firefox 26,一切正常。但是,如果我将浏览器更改为Internet Explorer(Sauce Labs在Windows 7上提供的三个版本中的任何一个 - 即IE8,IE9和IE10 ),那么它不起作用。Travis-CI + Sauce Connect + Behat:无法让Internet Explorer运行测试

the Sauce page that shows the IE browser test,就说明它的长视频显示无非This is the initial start page for the WebDriver server.错误信息在页面的顶部显示的其他显示该浏览器截图:然而,截屏是用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 

我在表明这可以通过非常规的端口引起找到​​3210,但我在端口上运行我的应用程序通过HTTPS 443,所以这似乎不是问题。

下面是通过酱运行Internet Explorer 9我贝哈特YAML配置文件:

# 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 

我正在贝哈特2.5.2,虽然我有同样的问题与2.4.x.

我不确定要去哪里或从这里做什么。我的下一步应该是什么?

+0

看起来像端口443应该工作,但我很好奇,如果你看到像8000的非SSL端口相同的行为?是否容易更改您的应用程序端口和检查? –

+0

尝试使用SSL的端口8000,得到了相同的结果:https://saucelabs.com/tests/674fb14952724a4e88cc1b24084afa32适用于Firefox,不适用于IE。可以尝试使用HTTP而不是端口8000上的HTTPS,但是更改涉及更多... – Trott

回答

1

我能够通过改变来解决这个问题:

base_url: https://localhost 

base_url: https://realhostname 

在Behat \ MinkExtension \ Extension:behat配置的一部分。

该主机名在.travis.yml文件中使用主机插件设置

addons: 
    hosts: 
    - realhostname 

我相信这事做通过酱做额外的代理连接对于以的底部所提及的本地主机: https://saucelabs.com/docs/connect我不知道为什么这只影响IE浏览器,但这种解决方案似乎工作。

2

我有使用Internet Explorer与saucelabs相同的问题。我正在发送一个POST /会话来请求一个新的会话,并期望返回一个{object}一个描述会话的能力的对象,按照Json有线协议。相反,什么也没有被送回除了头:

               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" 

位置包含从中我能继续我的会话标识。

从Twitter的饲料https://twitter.com/sauceops看起来他们有一个重定向循环发生问题的

相关问题