-
Notifications
You must be signed in to change notification settings - Fork 43
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
Seeing intermittent problems where Red Deer is unable to close all shells after a test has run #1300
Comments
…ntermittent problem with: Red Deer issue: eclipse/reddeer#1300
…ntermittent problem with: Red Deer issue: eclipse/reddeer#1300
Exception is actually ok - CloseAllShellsExt closes the notification popup and throws exception (to notify you about shell that was left open after test execution). Problem is that notification popups do not have standardized API yet[1] so we dont do anything special about them. Mylyn implements notification popus in a way that they don't have a title so that's why you get that confusing exception message "The following shells remained open []" Im adding this to mtg agenda to discuss possible solutions if any |
The exception is caught, but the tests still fail. Is there some way that -- Len On Fri, Nov 13, 2015 at 6:28 AM, rawagner notifications@github.com wrote:
Len DiMaggio (ldimaggi@redhat.com) |
There's no way to configure CloseAllShells to behave like that. The only thing you can do is to disable it (reddeer.close.shells=false) but then you will have to take care of shells that are left open after test execution. |
This problem has been showing up in tests such as this:
http://machydra.brq.redhat.com:8080/job/jbds-master-nightly.smoke.ui.test/jdk=oraclejdk1.8,label=domek/13/testReport/org.jboss.tools.mylyn.ui.bot.test/MylynTestBzQuery/testEclipseBugzilla_default/
The problem takes (2) forms:
Shells such as Eclipse/JBDS Notifications are sometimes not closed.
An error is displayed indicating that a shell with a null title cannot be closed:
java.lang.AssertionError: The following shells remained open []
at org.junit.Assert.fail(Assert.java:88)
at org.jboss.reddeer.junit.extension.after.test.impl.CloseAllShellsExt.run(CloseAllShellsExt.java:68)
at org.jboss.reddeer.junit.extension.after.test.impl.CloseAllShellsExt.runAfterTest(CloseAllShellsExt.java:60)
This is not a blocking issue - it can be worked around:
But - it would better if Red Deer could reliably close all the shells. Thx!
The text was updated successfully, but these errors were encountered: