jybot no more working after using Sikuli IDE
Hi there,
I'm trying to create a simple test case using Sikulix and Robot Framework. My issue is, that any time I start the Sikuli IDE, my jybot.bat won't execute my test cases anymore.
My set up is the following:
- sikulix-1.1.0 (installed in C:\Apps\
- jython2.7.0 (installed in C:\Apps\
- robotframework-
I have then created the following Sikuli script, saved as a directory "simple.sikuli".
from sikuli import *
class Application():
def foo(self):
if __name__ == "__main__":
app = Application()
app.foo()
Within that directory, I've also created a "robot.txt" that looks like the following:
***Settings***
Library simple.Application WITH NAME Application
***Test Cases***
Test Case 1
Foo
Now, when I run the script using jybot from the command line, everything is fine:
C:\Dev\
=======
Robot
=======
Test Case 1 | PASS |
-------
Robot | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
=======
Output: C:\Dev\
Log: C:\Dev\
Report: C:\Dev\
However, if I now start the Sikulix IDE and run exactly the same command again, I'll get the following:
C:\Dev\
C:\Dev\
So basically nothing appears to happen. By doing some trial and error, I've noticed that it has somehow to do with the sikuli import statement at the beginning of the script:
from sikuli import *
If I remove this line, this will be the output, which makes absolutely sense of course:
C:\Dev\
=======
Robot
=======
Test Case 1 | FAIL |
NameError: global name 'click' is not defined
-------
Robot | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
=======
Output: C:\Dev\
Log: C:\Dev\
Report: C:\Dev\
If I add the line again, the problem occurs again and I won't have any output.
As a workaround, I can run sikulixsetup-
As this is pretty annoying, I thought someone might have a hint what could be causing this issue. Apparently there is some kind of initialization done when the IDE is started, which messes around with my setup. But I'm kind of lost where to start digging.
Thanks in advance, I appreciate any help!
-- Daniel
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Daniel
- Solved:
- Last query:
- Last reply: