sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47830
Re: [Question #671096]: unit testing: how to handle exceptions and continue in case of failures
Question #671096 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671096
Sonali posted a new comment:
Thanks Raiman.
I am right now in the learning phase and still learning and understanding python+Sikuli.
Also I had another basic question. How will it work in case I have one unit test class in which multiple test cases(functions) are present and I want all of the test cases(functions) to be executed even though some functions end up in error.
class TestDemo(unittest.TestCase):
def functiontest1(self):
....
def functiontest2(self):
....
def functiontest3(self):
....
suite = unittest.TestLoader().loadTestsFromTestCase(TestDemo)
outfile = open("..\\results.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Test Report', description='Test Flows' )
runner.run(suite)
outfile.close()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.