Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Open => Needs information masuo requested more information: Do you mean that Already you get "AssertionError"? What is different from your expected? -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Needs information => Open Abhi gave more information on the question: Yes My Testing finished but finally it shows "AssertionError" because for a condition i wrote "assert False", but dont understand why this error occured!!! -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Open => Answered RaiMan proposed the following answer: This is how assert works: assert if evaluates to False (which is always the case in your situation), then an assertion Error is thrown. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Answered => Open Abhi is still having a problem: #If correct result(Molde)is not found on the screen, assert failure if not rgn.exists(Sikuli.Pattern(Model).similar(0.99)): #Captures the window and save the content as image on the path below focusWindow = App.focusedWindow() regionImage = capture(focusWindow) shutil.move(regionImage, os.path.join(r'C:\Errors\model','Model.jpg')) print "Model drawing failed" print "Path to image is: "+os.abspath('C:\Errors\model\Model.jpg') click("1458553913060.png") wait(1) click("1463297616160.png") wait(1) click("1450875259885.png") doubleClick("1453237275065.png") wait(1) #Clicks on field-filename to enter the name for the model click(Region(361,446,7,12)) wait(1) type("Automata_Example2") wait(1) click("1450875347964.png") assert False #If correct result(Model)is found on the screen, test passes if rgn.find(Sikuli.Pattern(Model).similar(0.99)): #Save the model click("1463297599172.png") click("1463297616160.png") wait(1) click("1450875259885.png") doubleClick("1453237275065.png") wait(1) #Clicks on field-filename to enter the name for the model click(Region(361,446,7,12)) wait(1) type("Automata_Example2") wait(1) click("1450875347964.png") --- this is code and condition need to satisfied so there I wrote assert False. but don't understand what is the problem. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Open => Needs information Manfred Hampl requested more information: The python instruction "assert False" aborts processing by generating an "AssertionError" message. So what you see is exactly what you have written in your program. What should the program do in case that the model is not found on screen? -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Needs information => Open Abhi gave more information on the question: if model which is drawn by SikuliX is not similar to the model screenshot then it saves that model to error folder and close the model and assert failure. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #643548]: AssertionError
Question #643548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/643548 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp