Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363175

Summary: SWTBot tests fon't seem to work in a multiple display (w/ Jenkins XVNC plugin)
Product: [Technology] SWTBot Reporter: Mickael Istria <mistria>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mickael Istria CLA 2011-11-08 09:22:34 EST
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".
Comment 1 Mickael Istria CLA 2011-11-08 11:12:12 EST
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.
Comment 2 Mickael Istria CLA 2011-11-09 06:33:20 EST
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.
Comment 3 Mickael Istria CLA 2011-11-09 07:42:29 EST
Confirmed as INVALID. The issue was that I did not have a window manager running on the DISPLAY hosting SWTBot.