Community
Participate
Working Groups
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 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" :)
Well, I missed this tab... Thanks Mariot!