Absent Member.. Absent Member..
Absent Member..

Task scheduled UFT test execution fails on RDP (remote desktop) due to insufficient resolution

Hello all,

I work with UFT for many years and with recent UFT's feature "Continue UFT run session after closing RDP connection" under Options, it seems I am very close to every GUI test automation expert's / engineer's dream: to be able to run test automation cases / suites independently regularly (e.g.: during the night).


Our test automation is placed on our dedicated test automation server. I have well working framework and even external custom-made application (developed in C#) which allows to set list of test cases to be executed (in a loop) and to schedule them to be executed in specific time in specific days in a week.


So everything seems to be ok and in fact the whole solution normally works like a charm. If I execute whole test suite manually or even when it executes itself, everything works well and without a problem.


The only critical issue is following. As soon as I close RDP connection, UFT's mentioned new feature (Continue UFT run session after closing RDP connection) is triggerred. This is great since it really works and test automation scripts in fact really continues and works..... until... well .... until it fails. The reason of this failure is, that manually closed RDP connection is "re-opened" by UFT and script thus can continue, BUT, it seems that this new RDP session is opened in quite small resolution. Not sure how big, but last taken snapshot when error due to small resolution occurred was 804 x 562 px big.


So my question is, how to keep original resolution, or even better, how to set (maybe default) resolution to be used when RDP session is closed? What I am still not sure about is whether this new resolution - which exists after RDP session is manually closed is defined by some RDP settings somewhere, or it is defined by UFT, which creates own session.


Anyway... thank you very much for any answer / reaction 🙂

2 Replies
Absent Member.
Absent Member.

Hello , I am not even able to run the tests after checking this option in UFt.

When i disconnect , the test Execution pauses and when i re-login into remote machine , the executions starts again .


Can you please tell me how did you successfully run tests after disconnecting the remote window

Cadet 3rd Class
Cadet 3rd Class


Even I'm also facing same issue when I lock local system or disconnect RDP then executions use to get Pause and continue when I connect back. Please share some workaround if anyone has. Thanks

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.