Robot Framework + Sikulix capturing back screen

Asked by Amol on 2018-07-02

We are working on implementing testing automation using Robot Framework + Sikulix + CI(Jenkins). We want to execute the test scripts on a remote machine (slave) in master slave configuration using Jenkins. We are using the robot frameworks swing library to test the Java Swing applications.

Problem : The Sikulix scripts are capturing black screen on the remote machine and further failing with no image found error. The same scripts when executed manually on the slave works fine.

 It appears that the scripts are working fine if triggered manually with mouse click or enter keyboard input. The same scripts cannot find images (captures black screen) when triggered automatically using Jenkins or any other background trigger.

I have even tried triggering the scripts via a windows scheduler but again Sikulix captures black screen. It is somehow appears that RB + Sikulix for Swing Library can only work if triggered manually.

Please let me know if you need any more information.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Jenkins works "headless" - meaning no access to the real monitor at runtime.

You have to implement some "fake-screen" e.g. with xvfb or some other X11 based screen simulator.

Can you help with this problem?

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

To post a message you must log in.