Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Answered = Open
matt is still having a problem:
Thanks for the response RaiMan!
It solved it for testA, but test B is still suffering from the error:
testB(org.python.proxies__main__$check2$4)
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
RaiMan posted a new comment:
Sorry for misleading (but might not be the problem):
when running in unittest mode, setUp and tearDown are run before/after EACH
testXXX.
With my suggestion to run it normally,
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
matt gave more information on the question:
Hi RaiMan thanks for another quick response.
I am currently on XP, but sadly that did not fix the problem. I've
grabbed the trace track below:
When I run through
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Open = Answered
RaiMan proposed the following answer:
Ok, these are all user errors (sorry, but true ;-)
--- assert not exists(UntitledNote.png)
AssertionError
If run in normal mode, assert
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Answered = Open
matt is still having a problem:
Hey RaiMan,
I have tried set to false within the unit test run mode. I still get the
testB(org.python.proxies.__main__check2$5) issue.
I have
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
matt gave more information on the question:
Amendment: error is: testB(org.python.proxies.__main__$check2$4): null
not testB(org.python.proxies.__main__$check2$4)
--
You received this question notification
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Open = Needs information
RaiMan requested more information:
Pls. send your current script folder zipped to my mail at
https://launchpad.net/~raimund-hocke
To have a chance to find out, I have
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):
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
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
matt gave more information on the question:
Right I've found the issue:
at: assert not exists(UntitledNote.png)
It is throwing an error, opposed to failing with the above error message.
I tried the same
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Answered = Open
matt is still having a problem:
I apologise as this is a dumb question, when you say This cannot be run
any longer in IDE normal run does this mean it must be saved to an SKL
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
matt posted a new comment:
My PC is very slow, I added in some more waits and works fine. Cheers!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
RaiMan posted a new comment:
IDE normal run:
black or yellow triangle button in top bar of IDE window (or the respective
entries in the run menu)
scripts prepared for the view unit test only consist of
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Open = Solved
matt confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because you are a member of
Sikuli Drivers, which
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Description changed to:
Hi there,
Currently trying to run this test I got from an example:
def setUp():
App.open(notepad.exe)
wait(UntitledIFil.png) # wait until the app appears
def tearDown():
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Description changed to:
Hi there,
Currently trying to run this test I got from an example:
def setUp():
App.open(notepad.exe)
wait(UntitledIFil.png) # wait until the app appears
def tearDown():
Question #188751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188751
Status: Open = Answered
RaiMan proposed the following answer:
if you want to run this in IDE normally and in the unit test view, it
has to be this way:
def setUp(self):
App.open(notepad.exe)
17 matches
Mail list logo