Ask a Question

When disconnecting From Remote Desktop While Running Automated Tests, suppress Windows Error Message

Big_Al
New Contributor

When disconnecting From Remote Desktop While Running Automated Tests, suppress Windows Error Message

When using the suggestion from Disconnecting From Remote Desktop While Running Automated Tests | TestComplete Documentation (smartb... is it possible to suppress the Windows error message ' You have been disconnected because another connection was made to the remote computer' after executing the shortcut mentioned in the article.

 

Big_Al_0-1667998307054.png

 

3 REPLIES 3
rraghvani
Trusted Contributor

Are you using Windows Remote Desktop connection or a different Remote Desktop?

 

Look at using SessionCreator, if you want to run your tests on a remote machine without having to log on to the machine.

I'm using Windows Remote Desktop

rraghvani
Trusted Contributor

I have TestExecute installed on Windows Server 2019, which allows multiple connections. When the machine is restarted, there are no users. I log onto that machine, and call the tscon.exe command, which disconnects my remote desktop. When I log back into that machine, I can see two users (17 and 21)

rraghvani_0-1668004623861.png

I log off the machine, and a schedule task will run the automation using the account I logged in at the beginning (17).

 

It seems like your remote desktop machine is not configured to allow multiple connection.

cancel
Showing results for 
Search instead for 
Did you mean: