sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29683
[Bug 1402048] Re: [1.1.0] Images with same name but in different tab are wrong
Ok, thank you for the trick with "Settings.setImageCache(0)",
with this capturing and finding is working again.
My first described scenario is still reproducable on Windows 8.1 x64.
Have you tried to open both tests and then restart the IDE?
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1402048
Title:
[1.1.0] Images with same name but in different tab are wrong
Status in Sikuli:
Opinion
Bug description:
Using SikuliX 2014 1.1.0 nightly build 2014-12-09 on Windows 8.1 x64
with Java 1.7.0_72.
If you have two test drectories, e.g.:
- test_1.sikuli
- test_2.sikuli
and both tests contains an image with the same name, e.g. "test.png" and 0.99 similarity,
opening both tests with the Sikuli IDE, the image of the first loaded test will dominate in the IDE,
this means the image of the first test will also be shown in the second test tab.
Assume the first test "test_1.sikuli" fails, because it can not match the image on the screen,
running the second loaded test "test_2.sikuli" from the IDE will also fail,
although the image should be found on the screen.
I also noticed another strange behavior which might be affected by the same bug:
capturing and replacing an existing image in the current test won't be found on screen
(assume the image won't be found before capturing).
Here an example code for capturing and replacing an image:
import os, shutil
f = capture(Region(0, 0, 500, 400))
shutil.copy(f, os.path.join(getBundlePath(), 'test.png'))
find(Pattern("test.png").exact())
I hope my description was clear enough.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1402048/+subscriptions
References