← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676481]: There's some way to "force error" or "failure" for XMLTestRunner?

 

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

Roman Podolyan posted a new comment:
1) I think you may try to use "assert" instead of if-else, like 
====
assert  handlerchamado<=0
====

If statement under assert is correct, script goes as nothing happened,
but if assert condition is failed, script should raise an error which
should fail the test.

(  see
http://www.jython.org/jythonbook/en/1.0/ExceptionHandlingDebug.html  for
assert examples )


2) They say XMLTestRunner is unmaintained ( https://github.com/srittau/xmltestrunner )

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.