← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #242649]: Take Screenshot for pass case also

 

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

    Status: Open => Answered

obiwan-92 proposed the following answer:
Hello.

First things first : you should upgrade your Sikuli version to the 1.0.1
before the 1.1.0.

Secondly : Normally assert is just a python command who print a message to help the debug.
Some example :
try:
    print "abc"
    1/0 # Exception
    print "def"
except: assert False, "Error message" # assert condition, message print in the error
 The result :
abc
[error] script [ *Untitled ] stopped with error in line 5
[error] AssertionError ( Error message )

Hope it's help.
Regards

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