I need to run my all test cases in parallel of 4 different browser. On my chrome driver its work fine.
Problem arise when i try to run in parallel as local testing.
I get following error com.browserstack.local.LocalException: *** Error: Either another browserstack local client is running on your machine or some server is listening on port 45691
I am using TestNG as my test runner.
It is too late but maybe it is good for other developers.
I do not know in which language you are programming but if you are using java and using the browserstack-local-java which has poor documentation :(
You need to add browserstack.localIdentifier = "specific id" to the capabilities when you create the WebDriver
At the same time when creating the com.browserstack.local.Local which calls ./BrowserStackLocal under the hood you need to specify an option called localIdentifier and it must have the same value as the browserstack.localIdentifier.
This is not documented but I tested it and it works and take a look on https://github.com/webdriverio/webdriverio/issues/2252
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With