[Robot-Framework]Timeout Not Finding img

Asked by textSolver34761

Hi,

I'm wokring with:

Python (version : Python 3.10.4)
RobotFramework (version: 6.1.1)
robotframework-SikuliLibrary (version 2.0.3)
OS: Windows

I'm trying to make the hello world example : http://rainmanwy.github.io/robotframework-SikuliLibrary/.

I have an error :

com.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happened, could not find P(1701437608400.png -- not valid!) S: 0.7

I manage to understand that S is for "Similarty". meaning that the program can find a 70% chance my image ?

Another issue I have is that I don't understant why there is a need capture pics if I can get them. Currently all the script is picking up is the IDE with the script... not really interesting!

I have passed him my pic (in the folder the scripts creats and out)...

Nothing changes.

I have many "Sikuli_java_stdout_1701446696.1746387.txt" file with the same message :

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
17:04:56.823 [main] INFO org.eclipse.jetty.util.log - Logging initialized @517ms to org.robotframework.remoteserver.logging.Jetty2Log4J
17:04:56.895 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.31.v20200723; built: 2020-07-23T17:57:36.812Z; git: 450ba27947e13e66baa8cd1ce7e85a4461cacc1d; jvm 19.0.2+7-44
17:04:56.947 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@69c81773{/,null,AVAILABLE}
17:04:57.090 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@770d3326{HTTP/1.1, (http/1.1)}{0.0.0.0:53531}
17:04:57.090 [main] INFO org.eclipse.jetty.server.Server - Started @794ms

Same message as when I run the command :

"java -jar SikuliLibrary.jar 1000"

my code :

*** Settings ***
Documentation Sikuli Library Demo
Library SikuliLibrary
Library BuiltIn

*** Test Cases ***
Windows Notpad Hellow World
    Open Windows Start Menu
    Open Notepad
    Input In Notepad
    Quit Without Save

*** Keywords ***

Test
    Set Always Resize = 5

Open Windows Start Menu
    Click 1701437608400

Open Notepad
    Input Text search_input.png notepad
    Click notepad.png
    Double Click notepad_title.png

Input In Notepad
    Input Text notepad_workspace.png Hello World
    Text Should Exist Hello World

Quit Without Save
    Click close.png
    Click dont_save.png

Can I pass my program image and skip the capture?

How can I make the hello world work ?

Thanks

TextSolver34761

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
textSolver34761
Solved:
Last query:
Last reply:
Revision history for this message
textSolver34761 (textsolver34761) said :
#1

Just incase someone hase the same issue, I asked the Robotframework community too : https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/2

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
textSolver34761 (textsolver34761) said :
#3

"No Activity" also means "trying to figure things out..."

Revision history for this message
textSolver34761 (textsolver34761) said :
#4

Problem is solved by using this:

*** Test Cases ***
Windows Notpad Hellow World
    Add Image Path ${CURDIR}
    Open Windows Start Menu