unittest execution hanging when the image is not found
I'm launching a simple Python unittest in commandline.
The test contains an assert which is failing (this is what I want just to see the behavior when the test fails).
When the asertion fails, the execution of the test just hangs and never ends...
I launch the test with the following command :
java -jar sikuli-script.jar TESTS\testCalcu
and here is the script :
import sys
import unittest
setAutoWaitTime
class MyTests(
def setUp(self):
openApp(
wait(5)
def tearDown(self):
closeApp(
def test_addition(
click("2.png")
click(
click("2.png")
click(
assert (exists(
suite = unittest.
unittest.
The test works just fine when the assert is ok, but it is blocked when the assert fails... And the console is showing no error. The last line in the console is the las CLICK instruction.
Am'I missing something, is there something to do to let the execution continue after the failed assertion ?
Any help is appreciated.
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: