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.