Can we share the sikuli script with co workers

Asked by Puneet

Hi Everyone,

I raelly appreciate your answer for the previous question. We are trying to use Sikuli as much as possible but there are some basic problems.

1)Sometime the script runs and sometimes the same script doesn't work even we did nothing to it, for example if I have 10 lines of screen shots then at 8rth or line 9th it will stop and give me error, hence the automation fails...Such as stopped with error in line 37 [error] FindFailed ( can not find 1406834542453.png on the screen. ) But when i take the screen shot again for the same component then it works. My question is how we can avoid this and why this happens?

2) Can i share the sikuli script that I wrote with others via email?

Suppose I have automate few tasks on the internal website to verify few things and I want to share the same script that will be run on another machine and not mine. In this case can we do that?

Also, we are new to Sikuli and trying to learn the tool, is there any document which tells the basic things about Sikuli. For example - If i have 10 line of sikuli script (means 10 screen shots) then at 7th I want sikuli to wait 10 seconds before executing the 8rth line.

I do appreciate you suggestions

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
Eugene S (shragovich) said :
#1

Hi,

1. Generally, Sikuli shouldn't fail over for no reason and its behavior is expected to be consistent. If you encounter certain reoccurring problem with detecting a screenshot, try to do some investigation yourself and it might shed some light as to where the issue might be. For example:
     1. Make some printouts on the screen to make sure your script runs as expected in terms of timing. So if you are looking for a certain screenshot that's not on the screen yet, you might have to create some wait time before you attempt to detect that image.
     2. Use ".highlight(time)" method as much as you can. This will give you a better idea of what your script is doing.

2. There is no problem with sharing your script as long as Sikuli is installed on both machines and you provide the screenshots along with the script. Of course given that everything is placed into correct path.

3. All the documentation can be found in Sukuli website here: http://doc.sikuli.org/

Cheers,
Eugene

Can you help with this problem?

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

To post a message you must log in.