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

Bug 334374

Summary: Add an option in UI to select a DISPLAY
Product: [Technology] SWTBot Reporter: Mickael Istria <mistria>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: mariot.chauvin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mickael Istria CLA 2011-01-14 07:53:51 EST
SWTBot requires the window which host test to have focus during execution. A common way to deal with this issue under Linux is to start another X session (which creates a new DISPLAY), and to run this test on this DISPLAY. Then you can keep on working on your main DISPLAY whereas the test are executing silently on another.

The display is an environment variable, that we cannot set from Eclipse (as far as I am aware of).

SWTBot launch window should provide the ability to run tests on another DISPLAY. The DISPLAY could be an optional parameter to give to the build.
Comment 1 Mariot Chauvin CLA 2011-01-14 07:58:09 EST
(In reply to comment #0)
> SWTBot requires the window which host test to have focus during execution. A
> common way to deal with this issue under Linux is to start another X session
> (which creates a new DISPLAY), and to run this test on this DISPLAY. Then you
> can keep on working on your main DISPLAY whereas the test are executing
> silently on another.
> 
> The display is an environment variable, that we cannot set from Eclipse (as far
> as I am aware of).
> 
> SWTBot launch window should provide the ability to run tests on another
> DISPLAY. The DISPLAY could be an optional parameter to give to the build.

In "Environment" tab of the run configuration you could set a variable "DISPLAY" and value ":1" :)
Comment 2 Mickael Istria CLA 2011-01-14 08:00:00 EST
Well, I missed this tab... Thanks Mariot!