← Back to team overview

sikuli-driver team mailing list archive

[Question #214889]: Can Sikuli continue after a failed assertion and log it?

 

New question #214889 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214889

I have completed some test scripts that run as expected (many thanks to people on here including Raiman!)

in my scripts i have several assert lines that are similar to this:

assert exists(Pattern("SlipEntry.png").similar(0.95))

currently if they pass the script moves on and if it fails it just stops.

this was great while i was writing the script and going back and forth between running it, seeing if it failed and fixing it however after much thought this is not what i want in the end.

In the end i would love for the script to run say over night for example and if it fails an assert then log the fail and move on and at the end of the script, output all failed and passed asserts to a log file for me to view in the morning.


is this possible?

BTW have a happy holiday to everyone!

Shawn

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