Command Line use of Sikuli is slow because of startup time. Can Sikuli be prestarted somehow?

Asked by Mark Micallef

Hi,

  I'm using Sikuli as an addition to my existing selenium tests to bridge the gap in things that Selenium cannot do right now.

  My test driver starts sikuli in command line mode whenever required to do a particular task but this takes a long time because the visualisation engine is loading, etc. Is there a way for Sikuli to be started before hand and just told to execute a script? Or maybe is there another way to speed things up?

Mark

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

You either write your own script dispatcher in Jython or Java, or you use XML-RPC.

For the second option see this faq 1331 (rather easy to implement and works really instantly on same machine).

for my availability: faq 1739

Revision history for this message
Amutha Sreenivasan (amuthasree) said :
#2

Hi Raiman,

using latest version of sikuli

Tried to run 25 testcases (total lines of code --3000) .But sikuli is not even starting up. waited for nearly 20 minutes. Then commented nearly 20 test cases. Then it started. please gives a solution for this

while stopping forcefully(alt+shift+c) , it is not stopping immediately .after pressing 10 times, sikuli gui pops up. This happens every time. After that, if I tried to start up, it fails to run.

Then , close the tool & open it & then started running. Any solution for this? it is taking long time to go through all these steps :(

Revision history for this message
mustafa aljumaili (mustafa-thamer85) said :
#3

Hi Raiman,
In order to run sikuli script instantly, I went with the recommended second option (using SikuliServer ) but I am wondering if I can pass parameters to my sikuli script using an http request ( http://server:9000/test.do?script=/yourscript) . I know the code is not written by you but kindly I ask for your help with this issue.

Thank you

Revision history for this message
RaiMan (raimund-hocke) said :
#4

@mustafa
not sure, what you are talking about.

This is my solution and still valid:
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#experimental-runserver-run-scripts-from-anywhere-with-zero-delay

Can you help with this problem?

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

To post a message you must log in.