← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205890]: IDE-UnitTest: import limitations lead to crashes - do not use it in this case ; -)

 

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

Summary changed to:
IDE-UnitTest: import limitations lead to crashes - do not use it in this case ;-)

Description changed to:
Hi,

I wrote an extension of sikuli and want to use it in the unit test mode.

But just after the extension's load,

Exception in thread "AWT-EventQueue-0" RuntimeError: maximum recursion
depth exceeded

will be shown....


Does anyone know what is this about? or how can I get more debug info?


Thanks.


from unitTestExtension import *
def setUp(self):
    print 'setUp for Unit test now'
    for i in range(2):
        type(Key.ESC)
        wait(1)

def tearDown(self):
    print 'testDown for Unit test now'
    for i in range(3):
        type(Key.ESC)
        wait(1)

def test_launchCalculater(self):
    click("1344884462336.png")
    wait(1)
    click("1344884485689.png")
    wait(1)
    click("1344884509209.png")
    if exists("1344902812230.png"):
        print 'ok'
    else:
        print 'get log here'
##        getlog()
##        assertTrue(false)
        
def test_makeEmergencyCall(self):
    click("1344884623555.png")
    wait(1)
    click("1344884646718.png")
    wait(1)
    click("1344884658340.png")
    wait(1)
    click("1344884671168.png")
    wait(1)
    click("1344884684172.png")
    if exists("Emergencynum.png"):
        print 'ok'
    else:
        print 'get log here'
##        getlog()
##        assertTrue(false)
    click("1344885292372.png")
    if exists("1344885315345.png"):
        print 'ok'
    else:
        print 'get log here'
##        getlog()
##        assertTrue(false)

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