sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42223
Re: [Question #614515]: Sikuli xmlrunner/htmlrunner with try catch in test cases
Question #614515 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/614515
Status: Answered => Solved
stewazy confirmed that the question is solved:
import unittest
import sys
import logging
import os
import traceback
from sikuli import *
class TestClass (unittest.TestCase):
def setUp(self):
try:
#do smth
except:
#handle error and raise same error
raise
def tearDown(self):
try:
#dosmth
except:
#handle error and raise same exception
raise
def testSingleTicket(self):
try:
#do smth
except:
#handle error and raise same error
raise
I found a suitable solution for my problem. Here is the solution.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.