sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06085
Re: [Question #173986]: Is there a way to have the Messages window from Sikuli after a test pass has finished to be written to a file
Question #173986 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173986
Harry Readinger proposed the following answer:
You could also use python logging, although that may be a bit more
involved than you need if all you want is print statements outputted to
a file, however I find that it allows for better flexibility.
As an example here is output from my Error.log:
2011-10-07 17:48:27,104 ERROR FAILED TO LOAD C:\path\Grant-Revoke_Entitlements.py Because cannot import name openTicket
2011-10-07 17:48:27,105 ERROR search FAILED
FindFailed: can not find 1316620375617.png on the screen.
Line 16, in file C:\path\Edit_MasterAccountDetails.py
2011-10-07 17:48:27,105 ERROR openTicket FAILED
FindFailed: can not find Dubleddmacco.png on the screen.
Line 28, in file C:\path\Edit_MasterAccountDetails.py
2011-10-07 17:48:27,107 ERROR changeAccountDetails FAILED
FindFailed: can not find Ticketstatus-1.png on the screen.
Line 54, in file C:\path\Edit_MasterAccountDetails.py
2011-10-07 17:48:27,108 ERROR resolveTicket FAILED
FindFailed: can not find DEQDetailsfo.png on the screen.
Line 66, in file C:\path\Edit_MasterAccountDetails.py
I have the script log the sys.exec_info, along with other things. Let
me know if you want more code snippets.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.