When I use captured images from SikuliLibrary, is there a way for my tests to support multiple platforms in RIDE?
I have a problem using SikuliLibrary because my tests need to 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 it cannot be found. What do you suggest?
- Use condition if Sikuli finds image 1 on Windows 7 or image 2 on Windows 10?
- Do you have any other suggestion or library to use (not AutoIt, because the click is not the same as when I go from one screen to another, I run tests on the server)?
source to share
Just answered a very similar question here . Sikuli works in a very simple way, it scans the screen and matches the saved template with a certain similarity score. It is not possible to apply a configuration that would allow the use of alternative templates for different systems.
There are several possible solutions when running Sikuli on a machine other than the one where the templates were created. This happens if there are only minor differences.
- Turn off ClearType (Windows only)
- Reduce similarity score
- Disable "Smooth Screen Font Borders" (Windows only)
More information can be found in this article.
source to share
You can organize your images with the operating system filename suffix. For example, consider the following pseudocode:
# On Suite Setup
${Platform}= Set Variable If Windows7 '_Win7' '_Win10'
Set Suite Variable ${Platform}
# On Test case
# Then the file name should be selected by
Click ${mySomethingButton}${Platform}.png
source to share