Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363175 - SWTBot tests fon't seem to work in a multiple display (w/ Jenkins XVNC plugin)
Summary: SWTBot tests fon't seem to work in a multiple display (w/ Jenkins XVNC plugin)
Status: CLOSED INVALID
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 09:22 EST by Mickael Istria CLA
Modified: 2011-11-09 07:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.