sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02604
[Question #156247]: How are exception handled when using imported scripts?
New question #156247 on Sikuli:
https://answers.launchpad.net/sikuli/+question/156247
Hi,
This is my environment:
Library file = contains all the functions which directly interact with the UI.
Execution master file = contains the test designs by using the functions in the library file.
Library:
--------
def some_function:
do_something
Master execution file:
----------------------
def test_case:
some_function1 (None)
some_function2 (None)
...
try:
test_case (None)
except:
print ("Test Case FAILED")
When I run it the test case is actually executed but if I force it to fail, the exception is not handled and it justs gives an error (image not found).
Thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.