Forum Discussion
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.)
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 agoCommunity Hero
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.