cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete not recognising Remote Desktop window objects

SOLVED
Highlighted
Contributor

TestComplete not recognising Remote Desktop window objects

Hi,

 

I am trying to create a keywork test where from a PC, I start up the Remote Desktop application and remote into that machine. However, upon replaying the recorded test, TestComplete is indicating it cannot find the remote desktop object.

This object name TestComplete has recorded is IHWindowClass. TestComplete cannot recognise this object and hence cannot replay any actions associated with this object.

 

Is this a limitation of TestComplete. I understand there is a section devoted on running tests using RemoteDesktop. Do the tests need to be manually activated in the remote desktop window, and cannot be automated?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: TestComplete not recognising Remote Desktop window objects

Hi,

 

Does this mean test complete cannot reply click actions on buttons which appear inside the remote desktop window?

Not exactly. Everything within RDP window is just one big image. Not a set of objects but just a plain image. Thus it is not possible to search, for example, for a button by its properties. But you may prepare a set of required images (for this or that button etc.) and do a region search (i.e. search for an image within another image - see documentation for more details). Once a region is found, TestComplete will be able to click on it. RDP will route the click to the proper object of the application running remotely.

Note that this is very unstable approach, because images might be displayed differently for different OS, resolution, color scheme, etc. So, unless you need to do this just for one RDP window on one machine, the chances are high that you will need to prepare a set of separate images for every OS/resolution you need to work with.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: TestComplete not recognising Remote Desktop window objects

Hi,

 

TestComplete must be installed on the same system where tests are created, recorded and/or executed.

Remote Desctop application does not provide any information about applications running remotely but only a picture (screenshot).

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Contributor

Re: TestComplete not recognising Remote Desktop window objects

Does this mean test complete cannot reply click actions on buttons which appear inside the remote desktop window? This is what I am observing?

 

I recorded a simple test where I used remote desktop to log into another machine.

This test fails to reply for steps which clicks on a button presented within the remote desktop window.

Highlighted
Community Hero

Re: TestComplete not recognising Remote Desktop window objects

Hi,

 

Does this mean test complete cannot reply click actions on buttons which appear inside the remote desktop window?

Not exactly. Everything within RDP window is just one big image. Not a set of objects but just a plain image. Thus it is not possible to search, for example, for a button by its properties. But you may prepare a set of required images (for this or that button etc.) and do a region search (i.e. search for an image within another image - see documentation for more details). Once a region is found, TestComplete will be able to click on it. RDP will route the click to the proper object of the application running remotely.

Note that this is very unstable approach, because images might be displayed differently for different OS, resolution, color scheme, etc. So, unless you need to do this just for one RDP window on one machine, the chances are high that you will need to prepare a set of separate images for every OS/resolution you need to work with.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors