SikuliX / RobotFramework / robotframework-SikuliLibrary: problems to get it running

Asked by lionlamb

Trying to integrate Sikuli with Robot Framework (python). Hence, I am trying to use this Library "robotframework-SikuliLibrary". The site provides with the demo, it threw error when I ran the test. Here is the error

----- pybot testsuite_clickin.txt
[ WARN ] Test get_keyword_names failed! Connecting remote server at http://127.0.0.1:47630/ failed: [Errno 111] Connection refused
[ WARN ] Test get_keyword_names failed! Connecting remote server at http://127.0.0.1:47630/ failed: [Errno 111] Connection refused
[ ERROR ] Error in file '/home/xx/Desktop/robotframework-SikuliLibrary-master/demo/click_in/testsuite_clickin.txt': Initializing test library 'SikuliLibrary' with no arguments failed: Failed to get_keyword_names

And here is the error from the Sikuli_java_stdout

0 [main] INFO org.robotframework.remoteserver.RemoteServer - Mapped path / to library com.github.rainmanwy.robotframework.sikulilib.SikuliLibrary.
1 [main] INFO org.robotframework.remoteserver.RemoteServer - Robot Framework remote server starting
1 [main] INFO org.eclipse.jetty.server.Server - jetty-7.x.y-SNAPSHOT
26 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - started o.e.j.s.ServletContextHandler{/,null}
97 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:47630
97 [main] INFO org.robotframework.remoteserver.RemoteServer - Robot Framework remote server started on port 47630.
[info] runcmd: lsb_release -i -r -s
*** classpath dump
  0: /usr/local/lib/python2.7/dist-packages/SikuliLibrary/lib/SikuliLibrary.jar
*** classpath dump end
[error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/linux/libs64

I tried to walk thru the same issues in this forum, but they don't seem applicable.

Any helps from here would be very much appreciated. Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
lionlamb (lionlamb) said :
#1

Hi guys,

I have resolved this problem. It was my setup problem. Need to maven it then setup.

Thanks!

Revision history for this message
RaiMan (raimund-hocke) said :
#2

could you give a short description about the steps you took to get it running?

Revision history for this message
lionlamb (lionlamb) said :
#3

From this site https://github.com/rainmanwy/robotframework-SikuliLibrary - pom.xml is provided Thus, I built with 'mvn install' then only setup using this command 'python setup.py install' (which the setup.py also provided by the owner).

However, dated until now, it seemed like the errors have been resolved, but the test doesn't work fine. It just hangs on the test screen/page, no error thrown.. :-/ I am now looking for an alternative method to integrate sikuli with robot-framework... * headache *

Revision history for this message
lionlamb (lionlamb) said :
#4

Sorry, hadn't I mention that I am actually new in Robot framework, Selenium and Python (thus needing some time to figure how certain thing works and will try all stuffs to make certain thing works XD)...But I found it is quite interesting to integrate Sikuli with Robot framework, thats why would like to give it a try from the ground.

It is really my pleasure if anyone out here would like to give me some suggestions and advises. Thanks.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

I am just busy with SikuliX's support of RobotFramework:
- the robot package is contained in SikuliX
- you can edit and run Robot testcases in the IDE including the scripting of the keywords

This will be available again in the next 1.1.1 (I guess tomorrow) according to the information
Experimental: Play with Robot Framework (http://www.sikulix.com/support.html)
... and see question: https://answers.launchpad.net/sikuli/+question/293512

additionally I will have a look at the above mentioned package and come back with comments.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#6

--- About https://github.com/rainmanwy/robotframework-SikuliLibrary
It is an interesting approach, but surely not the right place to start with, when you are new to all this stuff.
In the moment, that the provided keyword implementations are not enough or not suitable, it is getting more complex, than it might have been when you started the normal Robot way top down:

- design your testcases
- design your keywords at the Robot level
- implement keywords at the Python level as needed

This approach allows you to step down to the details as needed.

Revision history for this message
lionlamb (lionlamb) said :
#7

Hi RaiMan,

Thanks for your suggestion and helps!

Revision history for this message
lionlamb (lionlamb) said :
#8

Thanks RaiMan, that solved my question.