sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27457
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: Open => Answered
RaiMan proposed the following answer:
Ok, this works for me (using variables to make it better readable:
the general java command is:
java -cp sikuli-java.jar:robotframework.jar -Dparameters org.robotframework.RobotFramework run …parameters…
where the items have to be adjusted system specific.
Nothing is needed in system path and the Lib folder need not be unpacked
with SikuliX version 1.0.1+ (see below)
on Windows make a bat/cmd:
setlocal
set sikuli=<path to sikuli-java.jar>
set rfw=<path to robotframework.jar>
set clp=%sikuli%;%rfw%
java -cp "%clp%" -Dsikuli.Debug=3 org.robotframework.RobotFramework run %*
endlocal
in your .sikuli library you need the following at the beginning:
import org.sikuli.basics.SikuliXforJython # adjusts the python sys.path
from sikuli import *
--- to see the full debug output:
import org.sikuli.basics.Debug as Dbg
Dbg.setLogFile("") # Sikuli's debug messages go here: SikuliLog.txt
import org.sikuli.basics.SikuliXforJython
from sikuli import *
Debug.setUserLogFile("") # user debug messages go here: UserLog.txt
Debug.user("after sikuli has started")
for e in sys.path: Debug.user( e)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.