sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58223
[Question #701210]: Issues with running same script on different devices
New question #701210 on SikuliX:
https://answers.launchpad.net/sikuli/+question/701210
I'm creating scripts for testing an application on multiple OSes. The application is the same on all OSes.
The scripts run perfectly on all OSes, but I'm encountering an issue with finding some images if they were taken from the other OS. All screenshots were taken from Sikuli's IDE. Version of Sikuli used is 2.0.5.
Initially, I create the scripts and screenshots from the Linux (Ubuntu) which is a virtual machine run on Oracle VM Virtual Box on a Windows machine.
Then I ran the same scripts on a (Retina Display) MacBook Air (M1, 2020) with latest Big Sur on it. The images were not found and the scripts were failing.
Afterward, I retook the same screenshots on the Mac device, and the script was working perfectly on it, but now it was failing on the Linux VM. Confirmed that it failed on Windows as well because I wanted to see if it was perhaps failing because the Linux was a VM.
I found that if I lower the similarity to ~0.57 the screenshot is found, but this might cause me some issues in the future.
I did some research and found that Retina displays have a higher resolution, but that if a screenshot is taken from Sikuli's IDE, the resolution is halved to counter this.
Also, I did try with using `resize()` on the images with different values, and no luck there.
I really do not want to take multiple screenshots of the same things for each environment, so that's why I'm writing here.
Is there a way to accomplish what I want, that is a single image be found on multiple OSes and devices for the same application? Perhaps setting the displays to specific resolutions? Or is there a way to somehow modify the screenshots within the script to resolve this?
Thanks.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.