-
Notifications
You must be signed in to change notification settings - Fork 676
Runner hangs when error occurs (Error in Role initializer) in reusable role #5278
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
Comments
Hello, Thank you for pointing out to this problem. We've reproduced it in your example. |
I just wanted to point out that applying the workaround to generate the new role for each test to avoid test cafe hanging in quarantine mode is quite expensive - the time to execute all the tests increases significantly :/ |
Thanks for sharing your finding. Yes, creating a new role for every test actually diminishes all the performance increment that the roles feature should provide. We would not consider this workaround as a permanent solution. Please bear with us. |
…usable role' close (DevExpress#5278)
What is your Test Scenario?
Using a simple role before each test to prepare the environment.
What is the Current behavior?
From time to time, connection to tested service fails (internet problem, server restart, application restart etc). When it fails, the whole tests runner pipeline hangs.
Looks like it is a similar issue to #4297 (@TauPan) and #4892 (@sijosyn).
What is the Expected behavior?
When such error in role occurs, the test should be marked as failed and the test runner should continue execution.
Further in quarantine mode:
Steps to Reproduce:
I was able to reproduce it - you can find the code in my fork branch. Use
yarn runner
ornpm run runner
to run the tests.I use a URL that does not exist to test it (there is no server running at http://localhost:1234/`.
reuse Role
New Role for each test
In this case, the result is different and, I would say, expected. For each test, the role is executed:
See tests log:
Your Environment details:
The text was updated successfully, but these errors were encountered: