Using raimanwy's RobotFramework support: Timeout happend, could not find png

Asked by Muhammad Z

Hi,
I'm totally new with sikuli and I'm trying to use it with robot framework (sikulilibrary).
I managed to install it properly on my mac machine (python2.7) but when trying to run my test I'm getting:

com.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happend, could not find Run.png

tried to give it the absolute path of the IMG folder or use the ${CUR_DIR}, but still no luck!
Is issue with the path only that is not recognised or something else?

Code::

##################################
***Settings***
Documentation Sikuli Library for Devices Testing
Test Setup Add Needed Image Path
Test Teardown Stop Remote Server
Library SikuliLibrary

*** Variables ***
${IMAGE_DIR} ${CURDIR}/IMG

*** Test Cases ***
Play Netflix on iOS
 log to console curr dir: ${CURDIR}
 Click TeamViewer.png

*** Keywords ***
Add Needed Image Path
 Add Image Path ${IMAGE_DIR}
############################################

Another question (I'll open a new thread if needed):
Can I run sikuli tests on iOS devices connected to my mac directly or need to remote connect to it (VNC\TeamViewere) first?

Regards.

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:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Have a look at
http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework

to find out and try out, how Sikulix 1.1.1+ supports using RobotFramework.

--- iOS
only via VNC, not directly on the device

Revision history for this message
Muhammad Z (zbeedatm) said :
#2

Thanks for the prompt response.

I want to use eclipse (with PyDev) for running the tests and not using the IDE for running robot tests as scripts.
The same approach used from Demo:
https://github.com/rainmanwy/robotframework-SikuliLibrary

Even when running the demo (hello_world\testsuite_sikuli_demo.txt) I'm getting the same!!!

Revision history for this message
Muhammad Z (zbeedatm) said :
#3

I can see inside the link that you posted:
"
In cases you do not want to run scripts from inside the SikuliX IDE or from command line using the SikuliX command scripts or jar-files, you might setup your own Jython environment and run scripts.
"

I guess that's what is missing (despite I had installed the pyjnius (which suppose to give the ability of python to work with java!!)
Will try the steps mentioned for installing Python and update if its working.

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

no need to go this hard and stony way.

just setup your Eclipse PyDev with a valid Jython 2.7 variant and use the non-SikuliX approach as said at the end of the above mentioned chapter.

IMHO: your approach is near overkill with many aspects, that might make problems.

Revision history for this message
Muhammad Z (zbeedatm) said :
#6

I suggest that you change your approach!

I had to do nothing, all were set correctly.
The only issue was that sikuli is not recognising the icons on the task bar of macintosh.
I couldn't test it before from IDE cause I had 1.0.1 version installed and was stuck when launching it.
When I installed 1.1.0 version and tried to do the same from IDE I realised and its not able to snip the task bar icons.