rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
144 stars 61 forks source link

TimeoutException: Timeout happend, could not find P(po.png) #151

Closed hxr1990 closed 2 years ago

hxr1990 commented 3 years ago

Jenkins remote call RF script on the server failed but the server runs the RF script directly through

Jenkins error messages: com.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happend, could not find P(po.png) S: 0.699999988079071

dschiller commented 3 years ago

S here means the Match Score. As I understand maybe the Match Score is 0.69.. you could try to lower the Score to match the .69 via:


...
  ${imageScore}  Get Match Score  ${image}
  IF ${imageScore} >= .69
    Log to Console  Found the Image
  ELSE
    Log to Console  Couldn't find the Image
  END
...
rainmanwy commented 2 years ago

maybe it is because of different screen resolutions.