← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #152804]: Why does Sikuli does not return to the IDE after running all unit tests?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- You might try to use your system specific abort key combination.

--- How do you know, that all tests have been executed? (the small
transparent window in upper left corner?)

--- Are you sure, that your test script does not have any syntax errors?
(test with a normal run, which should do nothing but check syntax)

--- Have you saved your script before running the test?

--- If anything odd happens during the test run, stop the IDE, restart
it and open your saved script again for the test run.

--- Run the test on commandline (see doc ) and see what happens.

--- There was a strange situation that someone set
setAutoWaitTimeout(5000), which was ok for 5 seconds with release 0.9.x,
but now it means that it waits about 1.5 hours if something cannot be
found.

--- This is a base test skeleton, that should run:
def setUp(self):
    wait(2)
    print "***** setUp"

def tearDown(self):
    wait(2)
    print "***** tearDown"

def test1(self):
    wait(2)
    print "***** test1"
    assert( True )

def test2(self):
    wait(2)
    print "***** test2"
    assert( False )

test1 should be reported as failed, test2 as ok.

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