Detecting network connection issues when running code module

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Brent Arata
Posts: 12
Joined: Mon Jan 27, 2014 10:33 pm

Detecting network connection issues when running code module

Post by Brent Arata » Fri Aug 29, 2014 12:14 am

Ranorex Version: 5.1.0.18625
OS: Windows 8
Developer License.
VM Platform: VMWare.

I have an issue where when I am running a very long code module, Ranorex will terminate the run of a code module if I lose connection to my VM. Is there a way in Ranorex Studio to detect for such an issue and if so recover?

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Detecting network connection issues when running code module

Post by krstcs » Fri Aug 29, 2014 1:24 pm

Ranorex requires that there be a REALIZED DESKTOP in order to identify and take action upon GUI elements. If your VM loses it's desktop (either it locks, logs off or disconnects) then Ranorex will not be able to continue. In addition, since Ranorex has no way to control these issues (they are either security related or outside of Ranorex's technical ability), there is no way to have the Ranorex test instance itself correct the problem. Note that this is not strictly a Ranorex issue as all other test automation tools on Windows would have the same limitations. It's unfortunate (I deal with the same issue), but it's just how it works.


There may be external tools that would help in this type of situation, but I am unaware of any myself.
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Detecting network connection issues when running code module

Post by Support Team » Mon Sep 01, 2014 8:13 am

Hi all,

If you are using RDP for connecting the VM you can try to use VNC instead.
VNC should not lock the screen when closing or minimizing the remote client window.
A detailed description can be found in the section Remotely Working with Ranorex on our website.

Regards,
Bernhard
.
Image