angular.js - angular tutorial專案端對端測試運行超時報錯
天蓬老师
天蓬老师 2017-05-15 16:53:40
0
1
822

目前在自學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-phonecatangular-phonecatnode_modulesprotractornode_modulesselenium-webdriverlibgoogasyncnexttick.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-phonecatangular-phonecatnode_modulesprotractornode_modulesselenium-webdriverhttputil.js:87:66)
at G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulesselenium-webdriverhttputil.js:42:21
at G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulesselenium-webdriverlibwebdriverhttphttp.js:123:5
at ClientRequest. (G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulesselenium-webdriverhttpindex.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)
Peter_Zhu

同遇到這個問題,在Mac下測試就能跑起來,在虛擬機Ubuntu下會報和樓主一樣的錯誤,求踩過坑的來解答

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板