我让 Travis-CI 运行 Sauce Connect 来运行 Behat 测试。如果我告诉 Sauce 在 Windows 7 上使用 Firefox 26,一切正常。但如果我将浏览器更改为 Internet Explorer(Sauce Labs 在 Windows 7 上提供的三个版本中的任何一个,即 IE8、IE9 和 IE10 ),那么它就不起作用了。
在显示IE浏览器测试的Sauce页面上,它显示了一个很长的视频,除了This is the initial start page for the WebDriver server.
显示浏览器截图的页面顶部显示的错误消息是:Test did not see a new command for 90 seconds. Timing out.
但是,截屏时间超过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
我确实在 Sauce Labs 支持文档中找到了一个条目,表明这可能是由非常规端口引起的,但我在端口 443 上通过 HTTPS 运行我的应用程序,所以这似乎不是问题。
这是我通过 Sauce 运行 Internet Explorer 9 的 Behat 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
我正在运行 Behat 2.5.2,尽管我遇到了与 2.4.x 相同的问题。
我不知道去哪里或从这里做什么。我的下一步应该是什么?