← Back to team overview

sikuli-driver team mailing list archive

[Question #252490]: Sikuli integration Robot framework

 

New question #252490 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252490

Hello RaiMan.

I hope you can help me :)
Currently I try to follow the instructions on http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html.

I managed to run a sikuli script from line command and now now I'm blocked with the integration with Robot Framework.

Here is the information on my system:
- Windows 7 64 bits
- Java runtime environment : JAVA_VERSION="1.7.0"
- Jython 2.5.1 (I tried also with 2.5.3)
- Python 2.7.6
- Robot Framework 2.5.5 (Itried also with 2.8.1)
- SikuliX Setup Build: 1.0.1 12NOV2013120000

My robottest.bat looks like the following:
@echo off
set sikuli_jar=C:\work\calc_step1\sikuli-script.jar
java -cp "%sikuli_jar%" ^
	-Dpython.path="robotframework-2.5.5.jar\Lib" ^
    -jar robotframework-2.5.5.jar ^
	--pythonpath="%sikuli_jar%/Lib";calc.sikuli ^
    --outputdir=results ^
    --loglevel=TRACE ^
    %*

When I run it, I get following message:
C:\work\calc_step1>robottest.bat robot_suite\verify_operations.txt
[ ERROR ] Invalid syntax in file 'c:\work\calc_step1\robot_suite\verify_operatio
ns.txt' in table 'Settings': Importing test library 'calc.Calculator' failed: Im
portError: No module named calc
PYTHONPATH: ['C:\\work\\calc_step1\\robotframework-2.5.5.jar\\Lib\\robot\\librar
ies', 'C:\\work\\calc_step1\\robotframework-2.5.5.jar\\Lib', 'C:\\work\\calc_ste
p1\\Lib', 'C:\\work\\calc_step1\\robotframework-2.5.5.jar\\Lib', '__classpath__'
, '__pyclasspath__/', '.']
CLASSPATH: robotframework-2.5.5.jar
Traceback (most recent call last):
  File "C:\work\calc_step1\robotframework-2.5.5.jar\Lib\robot\utils\importing$py
.class", line 94, in _import
==============================================================================
Verify Operations
==============================================================================
Verify that 2 + 2 = 4                                                 | FAIL |
No keyword with name 'Start App' found.
------------------------------------------------------------------------------
Verify Operations                                                     | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  c:\work\calc_step1\results\output.xml
Report:  c:\work\calc_step1\results\report.html
Log:     c:\work\calc_step1\results\log.html
C:\work\calc_step1>

I was that someone got the same issue but I didn't see well how it was resolved.
I tried a lot of things...I think there may be an issue with the version of Jython or Python or something with the classpath.

So thanks to help me .

See you

Grégory





-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.