← Back to team overview

sikuli-driver team mailing list archive

[Question #180585]: Confused about the Unit Test feature in Sikuli

 

New question #180585 on Sikuli:
https://answers.launchpad.net/sikuli/+question/180585

The past days I have been trying to rebuild my test so that I can use the Unit test feature in Sikuli, but I cannot get it to work. I rebuild my code as below.

def setUp(self):
    OmnisApp = App("/Applications/Omnis Studio 5.0.1 RT.app")
    OmnisApp.focus()
    wait(1)
    
def testAfspraakInvoeren(self):
    click("MainMenuExtra-1.png")
    click("MainMenuExtra_Agenda-2.png")
    wait(1)
    click(Pattern("Tijd.png").similar(0.99))
    click("GemaakteAfspraak-1.png")
    type("56")
    click("GroenVinkje.png")
    assert exists("GemaakteAfspraak.png")

After this I saved the file and opened the Unit Test (cmd+U). Then I click run. What happens next is that Sikuli interface shrinks to a small semi-transparent window (http://tinypic.com/r/2luxqhw/5) and futher nothing happens. In the small window I can click Run again, but still nothing happens. I have read the documentation about the Unit Test (http://sikuli.org/docx/faq/020-unit-test.html?highlight=unit%20test) and I tried those instruction, but it does not work. I also read the article on the link https://answers.launchpad.net/sikuli/+faq/1804. I suppose it is another way of running Sikuli unit test using python. I did not try this one yet, cause I first want to try the 'simple' one.

How should I use the Unit Test in Sikuli it self? Or should I go for the Python version?

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