Closed FortCWB closed 1 year ago
Hi, @FortCWB could you check the link "https://github.com/rainmanwy/robotframework-SikuliLibrary#start-server-manually"
you could start the java process manually.
do all these VMs have same configuration?
Hi, @rainmanwy !!
Yes, it worked! Thank you I'm going to use this as a workaround until I find another machine that "accepts" the tradicional mode + NEW (and thank you for adding this option to the lib).
Here is what I did, in case someone else gets the same issue:
Console terminal command I used:
PS C:\Users\xyz\AppData\Local\Programs\Python\Python39\Lib\site-packages\SikuliLibrary\lib> java -jar SikuliLibrary.jar 12345 .\sikuli_captured\
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
06:52:35.698 [main] INFO org.eclipse.jetty.util.log - Logging initialized @952ms to org.robotframework.remoteserver.logging.Jetty2Log4J
06:52:35.806 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.31.v20200723; built: 2020-07-23T17:57:36.812Z; git: 450ba27947e13e66baa8cd1ce7e85a4461cacc1d; jvm 11.0.16.1+1-LTS-1
06:52:35.868 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@146dfe6{/,null,AVAILABLE}
06:52:36.024 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@769a1df5{HTTP/1.1, (http/1.1)}{0.0.0.0:12345}
06:52:36.024 [main] INFO org.eclipse.jetty.server.Server - Started @1294ms
PS C:\Users\xyz\AppData\Local\Programs\Python\Python39\Lib\site-packages\SikuliLibrary\lib>
Basic test to validate the workaround:
*** Settings ***
Test Setup Add Needed Image Path
#Test Teardown Stop Remote Server
#Library SikuliLibrary
Library Remote http://127.0.0.1:12345/
*** Variables ***
${IMAGE_DIR} ${CURDIR}\\img
*** Test Cases ***
Click In Example
Click language button
*** Keywords ***
Add Needed Image Path
Add Image Path ${IMAGE_DIR}
Click language button
Click Capture.png
Notice: uncomment lines 3 and 4 and comment line 5 is enough to get the error.
It's necessary to add "Library Remote http://ip:port/" to each file that uses Sikuli keywords. As far as I understand, the keywords come from the running server itself.
I'm facing an issue in several machines, but in others it works smoothly. When I run the test case, in some machines the test gets stuck on the terminal and in others it runs as it should. I'm basically trying to have an official VM for running tests but I'm ending up on "works on my machine" issue.
Versions of robot, python and java are all the same (but also tried older versions on those machines that are having java crashed).
I also tried with mode=NEW, but no success (even though I'm gonna use NEW from now on)
Even the basic example of this page documentation ends up on the same error/crash.
Do you guys have any ideia of what's happening?
OS: Windows 10 Python: 3.11 Robot: 6.00 Java: 1.8.0_171 Sikuli Library: robotframework-sikulilibrary-2.0.3
Lib logs: