Forum Discussion

smitaparate48's avatar
smitaparate48
Occasional Contributor
11 years ago

Playback keyword test in background

I want to playback keyword test in background in test complete tool , If it is possible then how can i do?

9 Replies

  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi 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.
  • When 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.
  • smitaparate48's avatar
    smitaparate48
    Occasional Contributor
    Thanks 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's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion 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.
  • smitaparate48's avatar
    smitaparate48
    Occasional Contributor
    I 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.



  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi 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.
  • smitaparate48's avatar
    smitaparate48
    Occasional Contributor
    Then why my keyword test is not run when minimize the remote desktop? it stop playback and gives windows invisible error message.