Failed tests are marked as "error" instead of "failed" in report
Asked by
zhenya
Hello!
I'm using unittest and htmltestrunner in my tests.
And when Sikuli doesn't find image, report puts "error" status against corresponding test instead of "failed".
Should it work so?
If yes, can you please provide me an example of how should I modify code to turn fails to find image into test fails?
I've thought it might be something like that, but it didn't work for me:
class TestsBasic (unittest.
def test_example(self):
testresult = False
expectedresult = True
click(
wait(
if findAll(
testresult = True
self.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.