Forum Discussion
If you leave the RDP session active, do the tests work properly?
- Colin_McCrae10 years agoCommunity Hero
Yeah.
If you are remoted in via RDP, and then kill the remote connection, it tends to break the tests and the session closing causes TC to lose access to the GUI.
Try VNC for remote viewing instead. You can drop in and out as you please without interfering with the user session and upsetting the test run.
- tonydugay10 years agoContributorYou can use this command from a command prompt (you may need to be administrator) when in your RDP session: tscon 0 /dest:console You may need to change 0 to the userID of your RDP session - find this using Task Manager and click the Users tab.
- aflyte10 years agoNew Contributor
If you see the linked article in my post, you can see that I'm performing the same command. The test will run properly for a few steps, but then seems to just operate on different objects which are different from the mapping. Have you tried this and had success?
- aflyte10 years agoNew Contributor
I'll try VNC, but if you see the linked article in my post, I'm actually disconnecting from the RDP session while leaving the server unlocked. This allows TestComplete access to the GUI while I'm disconnected. And, in fact, it is working for several steps of a GUI test when I do this, but then it seems to be clicking on random objects. When I run the tests while logged into RDP session, they run perfectly, so I thought it may be an issue with screen resolution or something like that.
- aflyte10 years agoNew Contributor
Yes, they do. I have them running at nearly 100% consistency rate while I'm logged in. I'm mapping the objects through the Object Spy since I figured they were mapping them through Silverlight properties and would be more reliable. But, when I look at the pictures of the test run, I can see it is clicking on different objects than the ones I've mapped.
- Colin_McCrae10 years agoCommunity Hero
Don't think it matters that you leave it unlocked.
I just know killing an RDP session during a run will mess things up. Hence our use of VNC for dropping in on remote tests ...
Related Content
- 6 years ago
- 6 years ago
- 13 years ago
- 5 years ago
- 5 months ago