Forum Discussion
9 Replies
- Marsha_R
Champion Level 3
We use Remote Desktop to run our keyword tests in the background.
http://support.smartbear.com/viewarticle/56551 - smitaparate48Occasional ContributorBut when we use remote desktop how it can be run as background.
- AlexKarasCommunity HeroHi Smita,
Automated tests can control tested application (TA) either via TA's internal API or via its GUI.
If the TA is controlled via API (like, for example, it is usually done in the unit tests by developers), then these tests can be executed in the background without any problem. Note, however, that in this case TA might, and, most probably, will, behave differently when been controlled via its GUI.
If the TA is controlled via its GUI, than tests cannot be executed in the background just because resources like mouse and keyboard cannot be shared between the test and the one working at the console. This is not a limitation of TestComplete but the way how OS works. - tonydugayContributorWhen you need to close the Remote Desktop session, execute the following command on the remote computer via the Remote Desktop client:
tscon SessionID /dest:console
SessionID is the Id of the current remote desktop session. You can view it in the Windows Task Manager. Use a cmd prompt running as Admin to execute the tscon command. - smitaparate48Occasional ContributorThanks for the reply,
I am runing keyword test on remote desktop, when I minimize the remote desktop runing is failed so for that i can use following steps but it dosent work , plz tell me whats going wrong.
On local computer, close all open Remote Desktop sessions.
Launch the Registry editor (regedit.exe).
Navigate following Registry keys, HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2.
Close the Registry Editor.
- Marsha_R
Champion Level 3
Things to try:
Check Task Manager to make sure Remote Desktop sessions are really all closed before you make the registry change.
Reboot after you make the registry change. - smitaparate48Occasional ContributorI am already restart the system after changing but even it is not working,
Can i create QWORD value replace with DWORD and set it value data 2, bcz my system is 64bit version. - AlexKarasCommunity HeroHi Smita,
For 64-bit OSes regedit must be started from both the <Windows>\SysWOW64\regedit.exe and <Windows>\System32\regedit.exe folders.
DWORD type must be used in both cases. - smitaparate48Occasional ContributorThen why my keyword test is not run when minimize the remote desktop? it stop playback and gives windows invisible error message.