Jenkins is throwing exception error for robot sikuli script

19 views
Skip to first unread message

Sayali Waghmare

unread,
Feb 14, 2019, 6:06:27 AM2/14/19
to Jenkins Users
Hi,

I have a robot sikuli script when run from terminal it just runs fine.

When executed from jenkins as a job it is throwing a exception as om.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happend, could not find P(signin.PNG) S: 0.7.

Jenkins is installed as a service on windows machine.

Attached are the logs.

Thanks.
jenkins.err.log

Mark Waite

unread,
Feb 14, 2019, 9:50:08 AM2/14/19
to Jenkins Users
Since SIkuli is a screen capture and replay based testing framework, it needs access to the Windows desktop.  Running as a Windows service does not give access to the Windows desktop by default.

I suggest that you should configure a dedicated Windows machine that is logged into the Desktop automatically when Windows starts and automatically starts the JNLP based agent to connect to the Jenkins server.  Assign a label to that agent (maybe 'sikuli') and run your sikuli tests on that agent.

There are other techniques that attempt to give Windows desktop access to a Windows service.   I'm not persuaded that they are worth the effort.  Windows services generally are not expected to interact with the Windows desktop.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2a3aa4be-8594-4a6e-92d5-07a8e2b215a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages