← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #156247]: How are exception handled when using imported scripts?

 

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

    Status: Needs information => Open

Tedi Roca gave more information on the question:
This is how I import the library:
myScriptPath = "C:\\Documents and Settings\\user\\My Documents\\00. WORK\\01. Projects\\project\\04. Testing\\testing\\Sanity_Scripts\\"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import Test_library
from Test_library import *

There is no exception handling in the functions library. Perhaps I'm
trying something wrong but I'm expecting these to be handled directly
when the test case is called.

To force it to file I just close a window where the script is trying to
click a button, so it's not an assertion it's actually a failure to find
an object to continue with the execution.

Thanks

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