sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27443
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
Status: Answered => Open
Greg is still having a problem:
Now in my robottest.bat, I put this :
@echo off
java -Xbootclasspath/a:C:\work\calc_step1\sikuli-java.jar -jar robotframework-2.5.5.jar run robot_suite\verify_operations.txt
I removed what it is not needed in path environment variable
In verify_opearations.txt I kept :
*** Settings ***
Library C:/work/calc_step1/calc.sikuli/calc.py
*** Test Cases ***
Verify that 2 + 2 = 4
Start App
Verify App
Perform Action 2 + 2
Verify Result 4
when I launch robottest.bat, it goes further :
C:\work\calc_step1>robottest.bat
==============================================================================
Verify Operations
==============================================================================
[ ERROR ] Invalid syntax in file 'c:\work\calc_step1\robot_suite\verify_operatio
ns.txt' in table 'Settings': Importing test library 'calc' failed: TypeError: lo
g(): 1st arg can't be coerced to String
PYTHONPATH: [u'c:\\work\\calc_step1\\calc.sikuli', 'C:\\work\\calc_step1\\robotf
ramework-2.5.5.jar\\Lib\\robot\\libraries', 'C:\\work\\calc_step1\\Lib', 'C:\\wo
rk\\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 88, in _import
File "C:\work\calc_step1\robotframework-2.5.5.jar\Lib\robot\utils\importing$py
.class", line 88, in _import
File "c:\work\calc_step1\calc.sikuli\calc.py", line 2, in <module>
from sikuli.Sikuli import *
File "C:\work\calc_step1\Lib\sikuli\__init__.py", line 6, in <module>
Debug.log(3,"Jython: sikuli: __init__: entering")
Verify Operations.Verify Operations
May I need to put in comment all lines begining by " Debug.log(3, " in
sikuli.py and __init__.py
I try also with the last robotframework version : 2.8.5
C:\work\calc_step1>robottest.bat
C:\work\calc_step1>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.