Currently I am self-studying angularjs and learning from the clone tutorial project on the official website, but every time I run the end-to-end test, it times out.
Configuration file 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_modulessselenium-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_modulessselenium-webdriverhttputil.js:87:66)
at G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulessselenium-webdriverhttputil.js:42:21
at G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulessselenium-webdriverlibwebdriverhttphttp.js:123:5
at ClientRequest. (G:angular-phonecatangular-phonecatnode_modulesprotractornode_modulessselenium-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)
`
Various dependent packages have also been updated and services have been started. I am a newbie, please give me some advice.
I also encountered this problem. I tested it under Mac and it ran. However, under the virtual machine Ubuntu, I got the same error as the original poster. Please give me an answer if you have experienced this problem.