On Mon, Oct 10, 2011 at 6:40 AM, David <mang...@gmail.com> wrote:
> The problem and test setup here is unlike what is described at
>
> http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html
>
> Instead I'm using Java interface to Sikuli directly for use with Robot
> Framework rather than Python/Jython (i.e. Sikuli script).
>
> Works fine when run with Robot Framework installed and executed via
> Jython. But doesn't work when using the self-contained Robot Framework
> JAR version that has included self contained Jython.
>
> Problem is with class path referencing. Can't figure out myself. Was
> hoping perhaps the RF user community here might have some ideas.
As a first debugging step, are you able to run `--help` with rf jar?
java -cp robotframework-2.5.7.jar org.robotframework.RobotFramework --help
This works for me in both Windows and Linux with a fresh download of 2.5.7 jar.
If the help works, you could then try to execute the test without
adding the Sikuli jar to class path at all, just see whether test
execution starts properly.
thanks,
--J
--
Janne Härkönen | http://reaktor.fi
http://twitter.com/#!/janneharkonen
Does the help still work if you use the complete class path? (My
suspicion is now that having `.` in class path messes things up)
I meant the class path with all of your dependencies, the latter form
seems to be it.
> I get
>
> Exception in thread "main" Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: No module named robot
This is *really* weird. It seems that having the additional jars in
class path causes RF imports to break. Can you try changing the order
you set the jars in the class path, so that RF is the first one? Is it
possible that Jython is contained also in sikuli-scripts.jar?
> seems on Windows, I should use ";" instead of ":".
This is true, the path entry separator is ':' in Linux and ';' in Windows.
--J