We are running Sikuli for GUI (image verification) testing.
We are running the scripts at Local and Jenkins level, where script is developed first using images grabbed from local machine and used to test on Jenkins.
The problem is the test cases are passing on the local machine level but consistently failing at the Jenkins level.
Here are some things that we have noted that could be causing this: Screen resolution between Jenkins and Local machine is different
Just want to answer my own question:
GUI (image/pixel) using Sikuli is dependent on the following factors:
These are outside the scope and not configurable within Sikuli (and also preset according to the tech stack used by the team) so it is best to align the development and test execution machine as much as possible.
The reason being the following formula is used when matching images, which is constrained to a grid.
Next option is to use the OCR capability of SikuliX.