Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334374 - Add an option in UI to select a DISPLAY
Summary: Add an option in UI to select a DISPLAY
Status: RESOLVED INVALID
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 07:53 EST by Mickael Istria CLA
Modified: 2011-01-14 08:00 EST (History)
1 user (show)

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-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!