Skip to content

Conversation

@PSpSynedra
Copy link

The initial issue, was that karma was not quitting after having run all the browsers.
It seemed to be waiting for a self._done call from this launcher.

After having fixed the done and _done calls to satisfy karma, I tried to refactor the launcher to avoid overriding base methods. My goal was to use the provided events 'start' and 'kill' to perform the requested actions.
This was quite a change to the initial code but also removed the dependency to q for promises.

I am not quite sure about backwards compatibility to earlier versions of karma as I my main intend was to get it to work with our setup of karma and selenium.

Up until now I successfully testet the implementation using the following components:

  • karma-1.7.0
  • selenium-webdriver-3.7.0
  • seleniumHub-3.7.0 using the following browser drivers
    • IEDriverServer-3.7.0
    • geckodriver-0.19.1
    • ChromeDriver-2.33

There is only one issue with IEDriverServer, which errors after quitting but having executed all the tests successfully. I suspect it does not handle the drivers quit call like the other drivers but I did not want to integrate browser specific code into the pull request.

I know the pull request is quite a change (sorry for that) but it now allows us to run our tests fully automated on our selenium based infrastructure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant