← Back to team overview

sikuli-driver team mailing list archive

[Question #249364]: How to create class and methods in Sikuli IDE

 

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

Hi,

  I am new to Sikuli and am trying to create a sikuli script. I want to create a class with the test methods in it. I am not able to get the code running. Can someone please help?
class Test:  
    def setUp(self):
        openApp("abc")
        wait(10)

    def tearDown(self):
       closeApp("abc")    

    def test1(self):
        click("1401168929740.png")
        time.sleep(1)
        type('o')
        time.sleep(3)
        click("1401169004890.png")
        wait("1401169047733.png")
        type("some text here")
        time.sleep(2)
        click("1401169154910.png")

        time.sleep(10)

        print("the outcome")

    def test2(self):
        wait("1401169193096.png")
        click("1401100914478.png")
        time.sleep(3)

        print("the outcome")


    def test3(self):
        type("m", KEY_ALT)
        type("cus1")



When I try to run form the sikuli IDE, it does not do anything. How can I proceed further?


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