4
我已经使用运行firefox和chrome的量角器编写了相当数量的E2E测试,并且所有工作都很好,但是当我尝试使用phantomjs以便我们可以让它们在我们的CI服务器与线路故障:使用Chrome/Firefox完成量角器测试但幻像失败
UnknownError: Error communicating with the remote browser. It may have died.
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'referenemesimac.home', ip: '192.168.1.67', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.6.0_65'
Driver info: driver.version: EventFiringWebDriver
有没有人来过这个?这里是我的protractor.conf.js
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'phantomjs'
},
onPrepare: function() {
var width = 1440;
var height = 900;
browser.driver.manage().window().setSize(width, height);
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['protractor_specs/**/*.js'],
baseUrl: 'http://localhost:3000',
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
};
我们决定放下量角器以获得更稳定的东西。我们现在正在使用水豚 – 2014-12-09 08:47:48
有几天后,用量角器和phantomjs有了一天的时间,当所有测试都有效时,我开始思考同样的问题。 – bullgare 2014-12-09 14:37:08