Answered

How to change VM Machine resolution and zoom level

Hi Team,

I see that the VM machines during cloud run are in different resolution size and zoom levels compared to local machine,

Which is making my browser to shrink and elements are becoming as LOV(List of values) in VM whereas in Local i am able to see the elements

 

Kindly help me out on how to change the VM Resolution size and zoom level, if not i have to modify my script to handle this issue 

0
1 comment
Avatar
Joseph Hamdan
Hi Arun,

You need to talk to your administrator as this has to be done by them. First talk to them to change the resolution on the VM, with whichever method they see fit. If not successful do the following:
  1. Make sure that autologon is enabled for Administrator
  2. Disable executor autostart for Administrator (normally we suggest to enable autostart).
  3. Create a script login_with_custom_screen_resolution.ps1 with content
    #Subject7 Proprietary
    Start-Process mstsc.exe -ArgumentList "/v:localhost /h:<resolution_h> /w:<resolution_w>", replace <resolution_h> and <resolution_w> with the needed values. For example Start-Process mstsc.exe -ArgumentList "/v:localhost /h:1080 /w:1920"
  4. Make login_with_custom_screen_resolution.ps1 executable on Administrator login.
  5. Create a local user,  subject7
  6. Execute cmdkey /add:localhost /user:subject7 /pass:<password>, use <password> created in step (5).
  7. Enable executor autostart for subject7 user.
  8. Reboot.
Note: If c:/Users/Administrator/ is hard-coded in any test case, this might cause failures, so you will need to adjust them accordingly. 
Note: Test cases must not be screen resolution dependent, so if test cases run on any resolution, no failures should occur.
 
Subject7 Proprietary
 
Regards,
Subject7 Team
0
Comment actions Permalink

Please sign in to leave a comment.