← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #695712]: IDE: exit in try: block throws Exception --- workaround

 

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

    Status: Answered => Open

Chetan is still having a problem:
Thanks Raiman for your comments
unfortunately this would not work for us beacuse:
1. we are having method list Fail() where we wish to stop the execution if condition fails else continue

code is something link
Try
print("try")
!check(xys)="true"
fail() //exit


print("condition2) # execute this is condition not met



def fail()
exit()

2. Test case is written by tester so tester would may not be able to
write code after except or forget it sometimes. howver user can call
framework methods that we create like fail etc.also we wish that soehow
we can handle this at backend so tester writes mimimum code

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