← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166838]: Get test a to run before test b

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is one of the weirds of this Sikuli IDE feature.

the tests are just run backwards in the sequence they are written: the
last one first, the first one last. And the def names do not matter at
all - they only have to start with test. Only the physical sequence
matters.

so just rearrange your test def.'s.

def test2_EnterEmail(self):
    with Region(find("image.png")):
        click("image.png") # Click Email.
        wait(1)
        assert exists("image.png") # Keyboard invoked.

def test1_Launch(self):
    with Region(find("image.png")):
        click("image.png") # Launch HD
        wait(2)
        assert exists("image.png") # StartPanel exists, launch successful.

BTW: If you want to be the master of the test environment, use the Python unit test yourself and run your tests from command line:
http://docs.python.org/library/unittest.html (or other sources in the net).

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