Forum Discussion
karthick7 wrote:
Use 1024 * 768 resolution is Standard for Testing Application in any RDP
Not sure there is, exactly, a "standard". I used to run test automation on 800X600 boxes and it worked fine. The 640X480 might work for certain situations, even. For example, self-service Kiosks used to have their OS set to 640X480 because the screens were small so test automation needed to run in those environments.
Whatever resolution is NEEDED for the specific application, that's what needs to be set. Colin_McCrae's solution is a good one. Of course, depending upon the underlying infrastructure, there may be different ways of achieving the same result.
We are investigating this solution. (This is not so perfect for us because we are not the team in charge of this VM)
We tried also to modify the default resolution directly through registry; without success. It seems that this default resolution (1024x768) is set by Hyper-V, and the session of the TeamCity agent will use that as it's current (virtual) resolution.
Create manually a remote desktop connection and start the tests with TE using Network Suite and Manual mode is not possible also for us...
Is there any way to change someting in TestComplete settings to change the resolution used while creating the RDC (Network Suite and Automatic Mode) ?
There is also default config file use by RDC (Default.rdp in User\Documents) where you can put default settings for the connection, is this possible to provide or to modify the one used by TestComplete ?
We don't know exactly how TestComplete is creating the remote desktop connection, I'm assuming it's using mstsc.
If we can provide display settings for this RDC it would be perfect.
- AlexKaras8 years agoChampion Level 3
Hi Camille,
Check if http://superuser.com/questions/604026/how-to-set-default-screen-resolution-and-color-depth-without-monitor-in-windows helps. (Should be done on the master machine with TeamCity.)
- cam_farineau8 years agoContributor
We did find a way to change the default display settings on our Master VM. We did it with Hyper-V.
But the problem was not solved. Our UI tests were still running with the resolution 1024x768.
According to this article on SmartBear documentation, TestExecute will use the master computer screen's resolution on the remote computer:When running tests on a remote computer that participates in distributed testing, TestComplete creates a Remote Desktop session and automatically sets the master computer's screen resolution on the remote computer. This is done to avoid possible problems with test running.
It seems that this is not working like that in our case.
We did the same thing with our slave VMs: change the resolution with Hyper-V (Open Hyper-V Manager; Connect to each VM with console session; Go into the display settings as you normally would and change the resolution there).
And now our UI tests on these hosts / slave machine are using this resolution set locally.
So our problem is solved by changing the resolution locally on each slave machine and not on the master one !I don't know if we have misunderstood something in the article or in the way TestComplete/TestExecute create the RDP Session.
EDIT 2/28: In addition with the change of resolution on each slave machine, we did change something inside our master project.
We were using Network Suite and Automatic RDP session on host. To make it work with the new resolution we are using Automatic Console Session. This is an important change I forgot to mention... TestComplete is not using RDP then and it will use the display resolution of the host and not the master, this is why it is working for us.- AlexKaras8 years agoChampion Level 3
Hi Camille,
Thank you for the update, much appreciated!
My reply was based on the same help article that you quotes, but it looks like that there are some additional details in case Hyper-V is used. I believe that some option might exist in Hyper-V to set the default resolution of VM. Maybe, to set the default resolution for the newly created VM...
Anyway, thank you a lot for your shared solution.
Related Content
- 13 years ago
- 6 months ago
Recent Discussions
- 12 hours ago