Remote Testing With Sikuli VNC

Asked by joseph paul on 2018-10-23

I am attempting to click on images on a remote desktop computer. I am using UltraVNC with SikuliX running in an eclipse environment. When I execute the script i get a FindFailed error. Can I use UltraVNC with SikuliX.1.1.3? I am connecting to the remote computer with the following line in my script:

VNCScreen vncscreen=org.sikuli.script.Sikulix.vncStart("127.0.0.1", 5900, 10, 1000);

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-26
Last reply:
2018-11-11
RaiMan (raimund-hocke) said : #1

Possible to try with SikuliX 1.1.4?

The type of backend (UltraVNC in your case) should not matter.

with 1.1.4 use this in Java::
VNCScreen vncscreen=org.sikuli.vnc.vncScreen.start("127.0.0.1", 5900);

make a test with a oneliner:
vncscreen.userCapture()

BTW: "127.0.0.1" is not a "remote" connection. the server is expected on the same machine (locally).

In doubt do some debugging and check the relevant VNCScreen object variables after the start is done.

Another problem might be, that directly after the start the Framebuffer is not yet filled completely - insert some wait.

joseph paul (josephpaul) said : #2

I have captured the screen at the remote computer and it is all distorted. I have also double clicked on the VNCViewer and connected to the remote and the picture of the desktop is viewable except the images are larger. I still run my script and get a FindFailed error. Do you really think this problem will go away if i use 1.1.4? Thanks. Not sure what else to do.

joseph paul (josephpaul) said : #3

I also have a wait of 10 seconds before doing the screen capture on the remote pc

joseph paul (josephpaul) said : #4

I am using the following code to see the remote desktop....As I said previously...the image is coming out very distorted. When I connect to the remote PC with VNC\Viewer...the image of the desktop is fine but much larger than the remote screen is showing.

ScreenImage image = client.capture(client);
 image.save("D:\\");

RaiMan (raimund-hocke) said : #5

--- 1.1.4: I do not support 1.1.3 anymore with such system/tool specific problems.
... and no, of course I am not sure, that 1.1.4 will do the job.

... and I still do not understand, what you are doing on what system: remote is not local (127.0.0.1)

so please be more precise, so I have a chance to test with my setup.

joseph paul (josephpaul) said : #6

Sorry...i am not using loopback but rather an IP address for the remote...I am taking an image on the remote desktop with the snipping tool. Then in am clicking on that image from another computer with a selenium webdriver script in eclipse which has sikuli imported. I keep getting a findfailed error.

RaiMan (raimund-hocke) said : #7

I cannot help you, since I do not have your setup and really do not finally understand, what you are doing.

So I leave you alone now - you have to debug yourself.

joseph paul (josephpaul) said : #8

ok thank you

Launchpad Janitor (janitor) said : #9

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