Ask a Question

TestCase failure issue on remote computer triggered via RDP

sagdna
Occasional Contributor

TestCase failure issue on remote computer triggered via RDP

Hello Team,

 

While executing test cases via TestExecute on a remote computer connected through RDP we are facing TestCases are getting failed and we found that reason is that we have a Desktop application (AUT) upon launching it will switch ethernet port for about ~25Sec and makes RDP disconnection for the same amount of time,

once after the re-establishment of connection, we can see that TestExecute is executing the test case but at the end, it fails with the below error:

"The operation cannot be performed because the user session is disconnected" 

 

we even tried the solution which is provided in Disconnecting From Remote Desktop While Running Automated Tests webpage:

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

 

but did not help either, please suggest us on this issue.

 

Thanks in advance!

5 REPLIES 5
jkrolczy
Frequent Contributor

Re: TestCase failure issue on remote computer triggered via RDP

One possible solution to use:

 

You could use a VNC Viewer on your local machine and a VNC Server on the Remote computer.
VNC to remote computer, execute your TestExecute package, and the disconnect session thru VNC.

 

This eliminates using RDP all together for the disconnect issue and a non-interactive UI session.

 

I am using TightVNC 

JamesK
sagdna
Occasional Contributor

Re: TestCase failure issue on remote computer triggered via RDP

We have interactive GUI, please help on this.

A_Roskoshnyi
Community Leader

Re: TestCase failure issue on remote computer triggered via RDP

To disconnect from remote desktop, I use batch file. Then, in the same file, I start TestExecute via cmd. I've never had a problem with that. What exactly are you doing?

sonya_m
Community Manager

Re: TestCase failure issue on remote computer triggered via RDP

Thanks everyone, great pieces of advice here! @sagdna which advice did you use? Please share with the Community.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sagdna
Occasional Contributor

Re: TestCase failure issue on remote computer triggered via RDP

Could you please share Batch file script, somehow its not working in my case

 

Thanks

cancel
Showing results for 
Search instead for 
Did you mean: