sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30289
Re: [Question #252490]: [1.0.1] Sikuli integration Robot framework --- use sikuli-java.jar
Question #252490 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252490
balu posted a new comment:
Hi RaiMan,
I tried the example given in
"http://stackoverflow.com/questions/27039016/how-to-create-custom-
python-code-library-for-robot-framework" using my robottest.bat. Its
working as expected as shown below:
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli>robottest.bat test.
robot
==============================================================================
Test
==============================================================================
Example that calls a python keyword | PASS |
------------------------------------------------------------------------------
Test | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\ou
tput.xml
Log: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\lo
g.html
Report: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\re
port.html
So. There is no problem with PYTHONPATH right?
I am seeing issue when I use "calc.py" as Library. Here its throwing some sikuli related errors as shown below:
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli>robottest.bat verif
y_operations.txt
[ ERROR ] Error in file 'C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.s
ikuli\verify_operations.txt': Importing test library 'C:\Users\symbol\Desktop\Pr
ojects\Sikuli Projects\calc.sikuli\calc.py' failed: ImportError: No module named
sikuli
Traceback (most recent call last):
File "C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\calc.py", l
ine 7, in <module>
from sikuli import *
File "C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\Lib\sikuli\
__init__.py", line 3, in <module>
from Sikuli import *
File "C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\Lib\sikuli\
Sikuli.py", line 10, in <module>
from org.sikuli.script import SikuliScript
PYTHONPATH:
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\robotframework-2.
8.5.jar\Lib\robot\libraries
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\robotframework-2.
8.5.jar\Lib
C:\jython2.5.4rc1\Lib
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\Lib
__classpath__
__pyclasspath__/
.
C:\Python27\Lib
CLASSPATH:
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\robotframework-2.
8.5.jar
C:\robot\libs\SikuliX_110\sikulixapi.jar
==============================================================================
Verify Operations
==============================================================================
Verify that 2 + 2 = 4 | FAIL |
No keyword with name 'Start App' found.
------------------------------------------------------------------------------
Verify that 2 + 2 = 5 | FAIL |
No keyword with name 'Start App' found.
------------------------------------------------------------------------------
Verify Operations | FAIL |
2 critical tests, 0 passed, 2 failed
2 tests total, 0 passed, 2 failed
==============================================================================
Output: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\ou
tput.xml
Log: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\lo
g.html
Report: C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli\results\re
port.html
C:\Users\symbol\Desktop\Projects\Sikuli Projects\calc.sikuli>
Could you please look into this?
Thanks in advance.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.