sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09006
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: Needs information => Open
matt gave more information on the question:
Apologies, I don't have the ability to email files right now, but I can
give you the source code:
def setUp(self):
App.open("notepad.exe")
wait("UntitledNote.png") # wait until the app appears
def tearDown(self):
type(Key.F4, KeyModifier.ALT)
def testA(self):
assert exists("UntitledNote.png")
def testB(self):
assert not exists("UntitledNote.png")
if False: # set it to True when running normally
setUp(None)
testA(None)
tearDown(None)
setUp(None)
testB(None)
tearDown(None)
Thanks,
Matt
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.