There's some way to "force error" or "failure" for XMLTestRunner?
Hi. Good evening for everyone.
I'm working with Sikuli + XMLTestRunner on a larger task. In one part of the code that I write on Sikule IDE, I have an IF, and, inside this if I want to "force" an error or failure, because I want to the the info of fail in XMLTestRunner.
I have been trying for 12 hours diferents kinds of codes or style of codes and nothing work's fine.
I see this page http://
Let's take a look about my code:
class C1Cars(
def C1_CT1Ford(self):
type(' sikulix')
### HERE I WANT TO RETURN AN ERROR ####
### SO THE METHOD WILL BE THERE ####
else:
### HERE THE TEST WILL END WITHOUT RETURN ANY ERROR
def suite():
suite = unittest.
suite.
#suite.
return suite
Someone can help me?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Akissel Donner da Silva for more information if necessary.