Closed dfsoeten closed 5 years ago
I have applied the "shotgun" solution, which obviously seems to work:
exec('kill ' . $this->bs_local->pid);
I would like to see a better solution for this problem in the future.
To whom it might help in the future. The Browserstack binary, downloaded by the BrowserStack\LocalBinary
, ended up in the /root
directory of my Docker container. With no current way to manually specify a download location without messing with the HOME
.env variable or the $_SERVER['HOMEDRIVE']
and '$_SERVER['HOMEPATH']'
superglobals.
I dind't manage to get the right execution rights on that file, for whatever reason, hence why I tried moving the binary in the first place.
Hey there
I'm experiencing some issues with getting the client to stop after my tests have been run. If I spin up a clean Docker image of my application, and execute
ps -ax
inside of it I get the following as result:After I run my tests using the
BrowserStackWebDriver
helper that has been provided by the documentation here, the client is still running. Theps -ax
output after the tests have been run:My conclusion is that the
stop()
method is not quite working as expected, I have double checked and even removed the surrounding if case (if($this->bs_local->isRunning())
) to double check this.If I try to re-run the tests without completely restarting my app container I get the following error message, hence I'm investigating this:
Any ideas?
Edit: I would like to prevent a "shotgun" solution for this issue as discussed here.