[2.0.x] Is Sikulix able to run in headless mode? --- NO, but see workarounds

Asked by Asheru on 2020-01-29

----------------------- workarounds

please read through the comments

--------------------------------------------------------------

Hello,

Is Sikuli 2.x.x supporting headless mode? We are using Sikuli for a huge amout of tests since it's the only way of checking some things but we execute the tests on VMs that are running in headless mode and we are tied with 1.1.3 for the moment.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-29
Last reply:
2020-01-29
RaiMan (raimund-hocke) said : #1

About requirements for running headless, there is no difference between 2.0.2 (latest since today) and 1.1.3.

RaiMan (raimund-hocke) said : #2

... might not be clear enough.

2.0.x refuses to run in headless mode.
You need some fake screen (e.g. xvfb or similar)

Do you touch any features targeting a screen (Region.find ..., click, type).
If yes, then the above is the only solution.

If not, then I can add an option, to allow startup in headless mode and only crash/throw exception if something is used, that needs a screen (real or fake).

Asheru (asheru93) said : #3

"Do you touch any features targeting a screen (Region.find ..., click, type).
If yes, then the above is the only solution."
-> Yes we are using those features.

"2.0.x refuses to run in headless mode.
You need some fake screen (e.g. xvfb or similar)"
-> Now I think we have thightVNC with mirage driver. I think is related to that. Not sure because I did not create the environment.

It should work then. I will comeback here if I will encounter something.

RaiMan (raimund-hocke) said : #4

ok

George Varghese (vargheseg) said : #5

Since, I am interested in this topic - please excuse me on a similar question - will this without a real monitor. I am not connecting to remote desktop. All my scripting should happen on a single desktop without monitor

Will CompuLab 4K Display Emulator (fit-Headless 4K). According to the customer feedback : It plugs into display port connector on a computer and makes the computer think it is connected to a display (primarily used for headless operation of a computer.)

RaiMan (raimund-hocke) said : #6

@ George Varghese

This should work (made my own positive experiences some years ago with headless servers and hdmi-diplay-emulators), because from Java's view the system is no longer headless with such an emulator.

Can you help with this problem?

Provide an answer of your own, or ask Asheru for more information if necessary.

To post a message you must log in.