yevh-berdnyk d299713037
Added new desktop e2e tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-12-10 00:54:51 +01:00

28 lines
557 B
Python

import pytest
try:
import org.sikuli.script.SikulixForJython
from sikuli import *
except Exception:
pass
class BaseTestCase:
errors = list()
try:
Settings.ActionLogs = 0
Settings.MinSimilarity = 0.4
except NameError:
pass
def setup_method(self, method):
openApp('/home/squashfs-root/AppRun')
def teardown_method(self, method):
pass
def verify_no_errors(self):
if self.errors:
pytest.fail('. '.join([self.errors.pop(0) for _ in range(len(self.errors))]))