Running automation via Remote Desktop : How To …

Running automation via Remote Desktop

Best practices, code snippets for common functionality, examples, and guidelines.

Running automation via Remote Desktop

Postby atom » Thu Apr 08, 2010 5:50 pm

Hiya

Is there any guidelines for executing a ranorex test on a VM, and watching it execute via remote desktop
I noticed something odd, in that Report.ScreenShot logged totally blank screenshots when the remote desktop window was minimised.

Regards
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Remote Desktop

Postby Ciege » Thu Apr 08, 2010 6:29 pm

Hmm, never seen that... I do 100% of my testing on VM machines with Ranorex and connect to them either via the VM console (if it is a VM on my desktop) or through RDP if it is a VM on a remote machine. All with no issues similar to that.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: Remote Desktop

Postby Support Team » Fri Apr 09, 2010 10:15 am

Remote Desktop locks the screen when you minimize or close the RDP window, that causes screenshots to be blank/black and automation to fail. Consequently, if you use Remote Desktop, you need to have the RDP window open during automation (not minimized).

Ciege posted a workaround where you have a VM that keeps all the Remote Desktop windows open (and doesn't do automation) and you only connect to that VM from your PC:
feature-request-be-able-to-run-test-with-screen-locked-t1273.html#p4593

An alternative to RDP is using VNC or the VMWare Remote Console:
is-it-necessary-to-connect-a-monitor-t1128.html

Regards,
Alex
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Remote Desktop

Postby atom » Fri Apr 09, 2010 10:52 am

ok thanks for update i'll change to VNC
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Remote Desktop

Postby Gunner1980 » Fri Apr 23, 2010 12:11 am

Just as an FYI, if your using Real VNC you will most likely notice it is much slower than remote desktop. I just found this post which tells you how to improve the performance.

http://www.petersblog.org/node/990

I just tried this out and the difference was night and day. I can now run scripts while my VNC connection is totally minimized and it is fast!
User avatar
Gunner1980
 
Posts: 89
Joined: Mon Apr 05, 2010 9:44 pm
Location: Austin, Texas

Re: Running automation via Remote Desktop

Postby smalldoorman » Tue Oct 12, 2010 8:54 pm

I remote desktop to a machine in our Lab and run/record tests from my desk.

While running tests I have minimized the window and done my other work while the AT was going, though this is on a Win7 to a Win7 machine. I could mouse over my start bar and see at a glance how my test was doing and since I'm always testing GUI's, the mouse is always moving and my screen saver never kicks in during the AT.
smalldoorman
 
Posts: 14
Joined: Thu Aug 12, 2010 11:37 pm

Re: Running automation via Remote Desktop

Postby atom » Tue Oct 12, 2010 9:01 pm

Hmm... maybe win7 remote desktop is nicer!
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Running automation via Remote Desktop

Postby mrusso » Mon Mar 21, 2011 11:28 pm

I remembered that I read about a possible solution to this issue here:

http://blog.smartbear.com/post/10-10-11/testcomplete-tip-running-tests-in-minimized-remote-desktop-windows/

The general steps are to modify the registry by doing the following:

locate the key:
HKLM\Software\Microsoft\Terminal Server Client\

add a DWORD value in this key, naming it "RemoteDesktop_SuppressWhenMinimized", and give it the value 2.

If you're a 64-bit client, add that value to this key:
HKLM\Software\Wow6432Node\Microsoft\Terminal Server Client\

I haven't had a chance to try it out personally, though.

assuming it works, here's some code you could throw in a .reg file that automatically adds those keys to your registry.

32-bit:
Code: Select all
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Terminal Server Client]
"RemoteDesktop_SuppressWhenMinimized"=dword:2


64-bit:
Code: Select all
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Terminal Server Client]
"RemoteDesktop_SuppressWhenMinimized"=dword:2
mrusso
 
Posts: 16
Joined: Thu Feb 03, 2011 1:54 am

Re: Running automation via Remote Desktop

Postby natasha » Mon Oct 17, 2011 8:22 pm

Hi - I had a chance to try out mrusso's fix, and it did the trick. Now, minimizing the remote desktop window no longer disables the screen. Thanks!
natasha
 
Posts: 5
Joined: Mon Oct 17, 2011 8:18 pm


Return to How To …

Who is online

Users browsing this forum: No registered users and 0 guests