New question #673176 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673176

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.TestCase):
        def test_example(self):
                testresult = False
                expectedresult = True
                click("startProgram.jpg")
                wait("programStarted.jpg")
                if findAll(Pattern("programStarted.jpg").similar(0.99)):
                        testresult = True
                self.assertEqual(expectedresult, testresult)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to