Closed dacloutier-logmein closed 3 years ago
So, I managed to fix the issue. Solution was to start the browserstacklocal process in the @BeforeAll of my test suite, so, that way, it would open the tunnel just once for the whose suite.
Then each tests had to supply their desired capabilities.
My setup consist of a series of JUnit5 tests, that are run in concurrent mode. Locally, if I try to execute the tests, I have no issues. (I have had up to 15 concurrent tests running without problem).
Expected Behavior
The Browserstacklocal process should start just fine, regardless of its location (local laptop or CI server (Jenkins in my case))
Actual Behavior
The same suite of tests will on a random fashion throw out errors of this type if ran from the CI server:
Steps to Reproduce the Problem
browserstack local arguments
better yet, here's the initialization code:
Platform details
details
issue doesn't see to be specific to jenkins as someone else had the issue with CircleCI: https://discuss.circleci.com/t/parallel-access-to-binary-file/35853