Forum Discussion

Kateryna's avatar
Kateryna
Contributor
11 years ago

Change screen resolution during connection by remote desktop

Hello,

I have two testing computers where all my tests are running during night time.

I connect to these comps using remote desktop from the server. Servers usually are not suitable for working with UI and there is very weak video card. So when I connect from the server to the testing comps I get resolution only 1024x768. And I write test on comp where resolution is 1680x1050. 

The problem is in those tests which rely on screen coordinates. If I write test on my computer and then run it using server - test will fail.

Is it possible somehow to adjust screen resolution manualy?

I followed this article: http://support.smartbear.com/viewarticle/8964/

but it didn't help.
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Kateryna,


     


    Refer to the "Smart Resizing of Remote Desktop Windows" article - it describes how to change the size of the remote window.


     


    BTW, tests created based on screen coordinates are not very reliable. I suggest that you consider modifying them to make TestComplete work with screen objects.


     

  • I know, I try to avoid tests based on screen coordinates, but sometimes it is impossible because TestComplete doesn't recognize some objects which I need: for example it doesn't see anything inside web browser if web browser is opened inside wpf or windows forms application, even though I have enterprize version and it supports web object recognition. 

    I will look through that article, thank you very much!
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Kateryna,


     


    it doesn't see anything inside web browser if web browser is opened inside wpf or windows forms application


    As a rule, TestComplete can recognize objects located inside the WebBrowser control. If you decide to investigate why this doesn't work in your case, please let us know.

  • I would be glad if you help me to fix this problem, it often causes troubles during tests run
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Kateryna,


     


    In this case, create a new forum thread and describe the issue in detail. I'm sure the community will give you some useful tips.