TestArmada / magellan

Large Scale Automated Testing for Mocha, Nightwatch, Appium, Nodejs, etc
MIT License
287 stars 76 forks source link

[Magellan] Found selenium HTTP server at port xxxxx, port is in use #283

Open Kshirodram opened 4 years ago

Kshirodram commented 4 years ago

Hi Team,

We are getting the error below when we try to run the test cases on local dev machine. We aren't yet integrated with CI so won't be able to share any link. [INFO] [Magellan] Found selenium HTTP server at port 12003, port is in use.

Also what we can see https://github.com/TestArmada/magellan/blob/master/src/util/check_ports.js#L15 line isn't behaving properly(did a small console log and verify inside node_modules). The error obj seleniumErr is coming as null. If it is null then it should return callback(PORT_STATUS_AVAILABLE); But based on the condition it's always going to else block and returning callback(PORT_STATUS_IN_USE);

Could you please let us know if our understanding is correct or we need to do something else to get away with this error? Would be great help.

Thank you.

Version: node: 8.17.0 npm: 6.13.4

"testarmada-magellan": "^11.0.1", "testarmada-magellan-early-bail-strategy": "^1.0.0", "testarmada-magellan-local-executor": "^2.0.0", "testarmada-magellan-nightwatch-plugin": "^8.0.1", "testarmada-magellan-saucelabs-executor": "^5.1.1",

OS: Mac OSX(10.15.5)