Community
Participate
Working Groups
In order to be able to run tons of UI tests at the same time, I tried to run SWTBot tests on another display of my machine using XVNC plugin. Most of these tests just failed with a "cannot find display".
It looks like Display.getDefault causes troubles in multi-display X environment. I think that the lifecycle of Display in test is a bit tricky, and I've made some improvements to ensure Display is created only once for a test, and that all other places consumes directly this display by reference, or by resolving it via Display.getCurrent() - which only runs in methods annotated by @UIThread.
I think the buggy behavior I reported is more the consequence of not having a window manager rather than an issue in code. I make some more tests, but this will probably be an INVALID.
Confirmed as INVALID. The issue was that I did not have a window manager running on the DISPLAY hosting SWTBot.