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

    Status: Answered => Open

Test App is still having a problem:
Hi Masuo,

I have corrected the code as below and tried to run it . I get the same error 
saying "No keyword with name 'Start App' found"
Please tell me if i have to add something else.


runScript("""
robot
***Settings***
Library ./inline/LoginLibrary

***Test Cases***
Verify that 2 + 2 = 4
        start App
        verify App


Verify that 2 + 2 = 5
        start App
        verify App
""")


class LoginLibrary(object):
    
    def __init__(self):
                self.appCoordinates = (0, 0, 1024, 768)
        
    def start_App(self):
        calcApp = App("Calculator")
        if not calcApp.window():
        App.open("calc.exe");
           wait(2)
           calcApp.focus();
            wait(1)
            
    def verify_App(self):
        if exists ("CalcApp.png"):
            print("Calc window appeared")
        else:
            print("No Calc window")

    def runTest(self):
                self.start_App()
                self.verify_App()
if __name__ == "__main__":
        calc = LoginLibrary()
        calc.runTest()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to