Forum Discussion

mengbinhao's avatar
mengbinhao
Contributor
2 months ago
Solved

Can TC automation be done through remote desktop connection of Windows?

Hi there:

   My case is as below:

    1 Use TC open remote desktop connection of Windows, then input IP, click connect

    2  Switch to remote desktop of target server, then do some operation on target app of target server

     3 back to local server do next step operation

    Can TC do thin kind of work like I said?  If so, how can I write the script to do like this?

    I really appreciate any help you can provide.

  • rraghvani's avatar
    rraghvani
    2 months ago

    TC is not able to interact with the contents shown in your Remote Desktop Window, because of how RDP renders its contents - the remote machine sends pixel-based representation of the screen, similar to a video stream. Therefore, RDP doesn't expose the remote UI in a way that allows object recognition. However, a possible workaround is to use mouse coordinates to click on various locations of your Remote Desktop Window.

     

7 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    This sounds like a distributed test where operations need to be performed across multiple computers.  TestComplete used to support this but it has been depreciated.  This is a link to that information.  SmartBear recommends using a CI/CD pipeline approach.  

    https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/distributed/migrate/index.html

    Another option could be to setup the RDP connection to start a script to run the needed operation automatically.  

    What the others have said here is correct and work arounds are about all I know of.

     

    • rraghvani's avatar
      rraghvani
      Icon for Champion Level 3 rankChampion Level 3

      TC is not able to interact with the contents shown in your Remote Desktop Window, because of how RDP renders its contents - the remote machine sends pixel-based representation of the screen, similar to a video stream. Therefore, RDP doesn't expose the remote UI in a way that allows object recognition. However, a possible workaround is to use mouse coordinates to click on various locations of your Remote Desktop Window.