Using multiCapabilities with protractor causes EADDRINUSE error

≡放荡痞女 提交于 2020-01-03 04:54:24

问题


I am using protractor to run my suite of test. If I use protractor's capabilities option, all the tests run fine on all three major browsers (firefox. chrome, safari)

However, If I use multiCapabilities as such

  multiCapabilities: [{
    'browserName': 'firefox'
  }, {
    'browserName': 'safari'
  }, {
    'browserName': 'chrome'
  }],

I get an EADDRINUSE error for two of them (not always the same) while the other one passes. How can I fix this:

start of error message:

PID: 87414 (capability: safari #2)
Specs: /Users/nicolasmoise/Documents/Projects/otogo/otogo-direct/test/e2e/e2e.spec.js
Using the selenium server at http://localhost:4444/wd/hub


Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)

回答1:


EADDRINUSE means that the port number which listen() tries to bind the server to is already in use.

So, in your case, there must be something running a server on that port already.

Check your processes.

How to fix Error: listen EADDRINUSE while using nodejs?



来源:https://stackoverflow.com/questions/24373383/using-multicapabilities-with-protractor-causes-eaddrinuse-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!