【发布时间】:2014-03-17 16:33:50
【问题描述】:
我让 Travis-CI 运行 Sauce Connect 来运行 Behat 测试。如果我告诉 Sauce 在 Windows 7 上使用 Firefox 26,一切正常。但如果我将浏览器更改为 Internet Explorer(Sauce Labs 在 Windows 7 上提供的三个版本中的任何一个,即 IE8、IE9 和 IE10 ),那么它就不起作用了。
在the Sauce page that shows the IE browser test,它显示了一个长视频,除了This is the initial start page for the WebDriver server.,页面顶部显示的错误消息显示浏览器截图是:Test did not see a new command for 90 seconds. Timing out.但是,截屏超过13分钟很长,所以它至少会收到一些命令,即使它从未对它们采取行动。
与此同时,在 Travis 方面,我看到了这一点:
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
我确实发现 an entry in the Sauce Labs support docs 表明这可能是由非常规端口引起的,但我在端口 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
我正在运行 Behat 2.5.2,尽管我在 2.4.x 上遇到了同样的问题。
我不确定从这里去哪里或做什么。我的下一步应该是什么?
【问题讨论】:
-
似乎端口 443 应该可以工作,但我很好奇您是否在像 8000 这样的非 SSL 端口上看到相同的行为?更改应用端口和检查是否容易?
-
尝试使用 SSL 端口 8000 并得到相同的结果:saucelabs.com/tests/674fb14952724a4e88cc1b24084afa32 适用于 Firefox,不适用于 IE。也可以尝试在端口 8000 上使用 HTTP 而不是 HTTPS,但这种更改涉及更多......
标签: internet-explorer automated-tests behat travis-ci saucelabs