sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09007
Re: [Question #188751]: Sikuli Test hanging when running unit test - fine when through IDE
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Open => Answered
RaiMan proposed the following answer:
This works for me:
This cannot be run any longer in IDE normal run, since I use self (the
test case object) to have only one captured image for the same picture.
(so no if False block anymore).
def setUp(self):
self.img = "UntitledNote.png"
App.open("notepad.exe")
wait(self.img) # wait until the app appears
def tearDown(self):
type(Key.F4, KeyModifier.ALT)
wait(2) # give notepad time to vanish completely
def testA(self):
assert exists(self.img)
def testB(self):
assert not exists(self.img)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.