angular.js - angular tutorial项目端对端测试运行超时报错
天蓬老师
天蓬老师 2017-05-15 16:53:40
[AngularJS讨论组]

目前在自学angularjs,在官网clone tutorial项目来学习,但是每次运行端对端测试都会超时。
配置文件protractor-conf.js`exports.config = {
allScriptsTimeout: 11000,

specs: [
'e2e/*.js'
],

capabilities: {
'browserName': 'chrome'
},

chromeOnly: true,

baseUrl: 'http://localhost:8000/',

framework: 'jasmine',

jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};超时报错信息Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1
G:\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\lib\goog\async\nexttick.js:39
goog.global.setTimeout(function() { throw exception; }, 0);
^
Error: Timed out waiting for the WebDriver server at http://192.168.15.6:54792/wd/hub
at Error (native)
at onResponse (G:\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:87:66)
at G:\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:42:21
at G:\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\http\http.js:123:5
at ClientRequest. (G:\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:145:7)
at ClientRequest.emit (events.js:107:17)
at Socket.socketErrorListener (_http_client.js:271:9)
at Socket.emit (events.js:107:17)
at net.js:459:14
at process._tickCallback (node.js:355:11)
`
各种依赖的包也都更新了,服务也启动。本人新手请指点.

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

全部回复(1)
天蓬老师

同遇到这个问题,在Mac下测试就能跑起来,在虚拟机Ubuntu下会报和楼主一样的错误,求踩过坑的来解答

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号