Search code examples
robotframeworksikulisikuli-scriptrobotframework-ide

When I use captured images with SikuliLibrary, is there a way to make my tests support multi platforms in RIDE?


I have a problem while using SikuliLibrary because my tests should be run on both Windows 7 and Windows 10. How can I proceed? Some images are the same but sometimes there is a big difference so that it's impossible to find it. What do you suggest?

  • Use a condition if Sikuli finds image 1 in Windows 7 or image 2 in Windows 10?
  • Do you have any other suggestion or library to use (not AutoIt because the click is not the same when I change from one screen to another; I run tests in server)?

Solution

  • Just answered a very similar question here. Sikuli is working using a very simple principle, scan the screen and match the stored pattern with a defined similarity score. There is no way to apply a configuration that would allow using alternative patterns on different systems.

    There are few possible solutions when running Sikuli on a machine different from one where the patterns were created. This is in case there are only minor differences.

    1. Switch ClearType off (only for Windows)
    2. Reduce similarity score
    3. Turn off "Smooth screen fonts edges" (only for Windows)

    More details can be found in this article.