Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium exception will terminate all tests #3979

Closed
marten-cz opened this issue Feb 1, 2017 · 3 comments
Closed

Selenium exception will terminate all tests #3979

marten-cz opened this issue Feb 1, 2017 · 3 comments

Comments

@marten-cz
Copy link

What are you trying to achieve?

I would like to see that codeption continues with next test when exception is thrown from currently running test.

What do you get instead?

We are running tests in selenium. When the selenium grid is under load, the tests will sometimes fail with

[Facebook\WebDriver\Exception\UnknownServerException]
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

or some other exception. It will terminate the process and another tests will not run. We are not using --fail-fast option. Is there anyway to just mark one test as failed but to continue? Would it be possible to re-run the test automatically when concrete exception was thrown (like timeout exception)?

Details

  • Codeception version: 2.2.4
  • PHP Version: 5.6.24
  • Operating System: Debian
  • Installation type: Composer
@Naktibalda
Copy link
Member

Please upgrade Codeception.

2.2.6 (October 2016)

[WebDriver] Improved tests stability when Selenium server is gone #3534 by @eXorus. Fixes #3531

@marten-cz
Copy link
Author

Thanks, will do. I was searching in the issues but didn't found these.

@marten-cz
Copy link
Author

Ok, the update partially helped. But after update, there is this related issue #3653 .

Closing this issue.

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

No branches or pull requests

2 participants