sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51878
Re: [Question #680996]: sikulixX + HtmlTestRunner - continue on assert False
Question #680996 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680996
TestMechanic proposed the following answer:
Hi Asheru,
As far as I understand you are doing data driven test
I had same issue in the past and it is solvable.
Here is two approaches I would suggest:
1. Do not "assert" in the function
-- you can return true or false value to the main loop and store message like "test 43 failed" in var like errorsText
-- when your main loop finish you can check if variable errosText is empty and decide what to do
2. You can generate dynamically your tests(based on your csv) to match
unit test rules. In this way you will have 80 separated tests and each
can pass or fail independently
I highly recommend using second approach
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.