Re: Selecting Main Window with RemoteApplications fails after taking SwingLibrary into use

146 views
Skip to first unread message

Florian Heine

unread,
Apr 24, 2013, 3:09:36 AM4/24/13
to robotframe...@googlegroups.com
Hello Michu,

I am not sure on what machine you are running the Robot Framework tests as you mention vnc, but you need to have everything running on the virtual machine. Any test automation tool (SwingLibrary and RemoteApplictaons included) needs to be run on the same machine as the application being tested (eg you webstart app).

Just to put it another way, you can't run the SwingLibrary and RemoteApplications on your local desktop trying to test an application that is only visible in a VNC window. If you try and do that then the only thing that SwingLibrary sees is a VNC window (which isn't even a Java window). You need to run them on the remote machine and then you can use whatever tool you like to connect to the "screen" of the virtual machine (VNC, Remote Desktop, TeamViwer....).

Not sure if this is your problem, but it is something that I have seen people get wrong before.

     Florian

On Tuesday, 23 April 2013 14:34:36 UTC+1, Michu wrote:
Hi,
I'm trying to run some GUI tests on Java Westart application on VNC server. I have similar environment on my Win 7 and now I've tried to prepare  one on virtual machine (VMware) with Ubuntu 10.04.3 LTS. All the tests works on my win7 machine, but when trying to run them on VM I cannot Select Main Window. I'm using Java 1.6._24 (OpenJDK), python 2.6.5, jython 2.5.2, RF 2.6.3, SwingLibrary1.2 (tried 1.6.0 also), RemoteApplications1.2, jvmconnector-1.1 (which I suppose is already in RemoteApplications1.2)

I can launch the application and close it using RemoteApplications, I can Take SwingLibrary into use. Also seems there is some Swing connection to application as when using Select Main Window keyword it tries to Select Window with actual application window name. Select Main Window keyword ends up with ...java.lang.RuntimeException: Frame with title .... exception caused by timeout as I understand.

List Windows returns empty list.

I've already debug it for some time and I simply run out of ideas. Any suggestions, what could be wrong? Some time ago I was able to do it on another linux machine, and everything worked fine - so it shouldn't be remote (VNC) connection problem...

Thanks in advance for any help.
Michu.
Message has been deleted

Michu

unread,
Apr 24, 2013, 4:26:06 AM4/24/13
to robotframe...@googlegroups.com
Hi,
Thanks for reply.

Actually, I have everything running on mentioned virtual machine, so I think it is more RF-kind issue. I've mentioned about VNC just to point out that this may cause some problems in VMawre context. VNC is only used to see RF is clicking in tested app.

Any other suggestions?

Michu.

Michu

unread,
Apr 25, 2013, 4:30:26 AM4/25/13
to robotframe...@googlegroups.com
Hi,
the trick was to change Java to Oracle Java instead of OpenJDK. Now, everything works fine.

Michu.
Reply all
Reply to author
Forward
0 new messages