← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #167514]: sikuli test not working when executed via command line

 

Question #167514 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167514

    Status: Answered => Open

j is still having a problem:
hi, thanks for your reply.
Unfortunately this was not the sollution.
Here is my exact Script and the Stacktrace, maybe you can tell me what I did wrong :X

Script:
def setUp(self):
	pass

def tearDown(self):
	pass

def testTest(self):
	calcApp = App.open("calc.exe")

        img = "IRcchncrBear.png"

	wait(img,10)
	click(img)


	assert(True)
	calcApp.close()

C:\Tests>sikuli-ide.bat -t test1.sikuli
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
.[log] App.open calc.exe(5804)
[info] Text Recognizer inited.
E
Time: 10,266
There was 1 error:
1) testTest(org.python.proxies.__main__$test1$4)FindFailed: can not find IRcchnc
rBear.png
  Line 29, in file <string>

        at org.sikuli.script.Region.handleFindFailed(Region.java:349)
        at org.sikuli.script.Region.wait(Region.java:420)
        at org.python.proxies.sikuli.Region$Region$1.super__wait(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
:175)
        at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
:190)
        at org.python.core.PyObject.__call__(PyObject.java:432)
        at org.python.core.PyObject.__call__(PyObject.java:436)
        at sikuli.Region$py.wait$7(C:\Programme\SikuliX\sikuli-script.jar\Lib\si
kuli\Region.py:95)
        at sikuli.Region$py.call_function(C:\Programme\SikuliX\sikuli-script.jar
\Lib\sikuli\Region.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:191)
        at org.python.core.PyFunction.__call__(PyFunction.java:385)
        at org.python.core.PyMethod.__call__(PyMethod.java:215)
        at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
        at org.python.core.PyMethod.__call__(PyMethod.java:206)
        at org.python.core.PyObject.__call__(PyObject.java:414)
        at org.python.core.PyObject.__call__(PyObject.java:418)
        at org.python.pycode._pyx0.testTest$6(<string>:29)
        at org.python.pycode._pyx0.call_function(<string>)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:191)
        at org.python.core.PyFunction.__call__(PyFunction.java:385)
        at org.python.core.PyMethod.__call__(PyMethod.java:215)
        at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
        at org.python.core.PyMethod.__call__(PyMethod.java:206)
        at org.python.core.PyObject.__call__(PyObject.java:381)
        at org.python.core.PyObject.__call__(PyObject.java:385)
        at org.python.pycode._pyx0.runTest$3(<string>:12)
        at org.python.pycode._pyx0.call_function(<string>)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:191)
        at org.python.core.PyFunction.__call__(PyFunction.java:385)
        at org.python.core.PyMethod.__call__(PyMethod.java:215)
        at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
        at org.python.core.PyMethod.__call__(PyMethod.java:206)
        at org.python.core.PyObject.__call__(PyObject.java:367)
        at org.python.core.PyObject._jcallexc(PyObject.java:3500)
        at org.python.proxies.__main__$test1$4.runTest(Unknown Source)
        at org.sikuli.ide.sikuli_test.TextUnitTestRunner.testSikuli(TextUnitTest
Runner.java:33)
        at org.sikuli.ide.SikuliIDE.runUnitTest(SikuliIDE.java:842)
        at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:870)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.