sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12196
Re: [Question #204354]: Use testing methods in Eclipse
Question #204354 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204354
Status: Answered => Open
Martin D is still having a problem:
I can't seem to get it working. I get some kind of exception.
Code:
from sikuli.Sikuli import *
from sikuli.SikuliTest import *
import os
os.popen(r"open /path/folder/someFile.jar")
addImagePath(r"/path/folder/images/")
reg = Region(238, 158, 804, 502)
if reg.find("test.png"):
print "found"
else:
print "not_found"
And get following error:
[info] Sikuli vision engine loaded.
[info] Mac OS X utilities loaded.
[info] VDictProxy loaded.
Traceback (most recent call last):
File "/somePath/TestingSikuli/src/main.py", line 9, in <module>
if reg.find("image.png"):
Line 12, in file /somePath/TestingSikuli/src/main.py
at org.sikuli.script.Region.handleFindFailed(Region.java:420)
at org.sikuli.script.Region.wait(Region.java:511)
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
org.sikuli.script.FindFailed: FindFailed: can not find test.png on the screen.
Line 12, in file /somePath/TestingSikuli/src/main.py
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.