Can Sikuli scripr run on different machine

Asked by vidya rajagopal

I want to know the following facts about sikuli script

1. Can script be created on one machine for a set of mobile application testing , run another machine if the screen size/resalution change?
2. Does the image matching happens based on the cordinate match or is it based on the image match on the screen
3. Does the script crash / fail if the window under test is moved while running , or a new window pops up? How does it identify the window on which image matching or click action are to be done

Thanks
Vidya

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

-- 1. resolution ...
... does not matter as long as the per pixel information is the same on different systems.
width and height in pixels must be the same, pixel color might slightly vary (influences similarity)

-- 2. image matching
Currently this is always done by getting a fresh screen capture (which might be restricted to a smaller region by the user at his own resposibility) and then searching the visual object inside this captured image.
Currently a Match object does not remember its image, only its position/dimension and similarity.

-- 3. window under test is moved
If the script does not restrict the search region using absolute coordinates (the window has always to be on the same position with the same dimension), this is no problem.
To be flexible, one should use the App class, to get the application window dynamically and use this as restricted search region.

Can you help with this problem?

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

To post a message you must log in.