Forum Discussion

ThomasK's avatar
ThomasK
New Contributor
5 years ago
Solved

Self-healing on item or version number

Hi,   I am using TestComplete to automate tests in a home-made desktop application. But I have a problem that occurs in every Keywordtest I run.   Some objects on my application seems to change o...
  • mbeckham's avatar
    mbeckham
    4 years ago

    Hi Everyone,

    Alex, you've stolen my thunder 🙂   I was just about to report our success with tscon.  We ran the command manually on the RDP machine which 'shut' it down while the Agent was 'listening' for work.  Our next step will be to create the batch file to run the tscon command and include it in the nightly pipeline.

    So, to run this command (as Alex says, run as an administrator )  within the RDP window, from the Command Line. 

    >query user          (this will return the sessionname eg rdp-tcp#xx)

    >tscon.exe  rdp-tcp#xx  /dest:console

    respond "yes" to to close your session

    ...all done