Forum Discussion

yingkai1208's avatar
yingkai1208
Contributor
12 years ago

Object spy in Testcomplete could not identify objects

Hi,

I encountered a very odd issue. I got two TC installed on two machines, and used them to test a same application. Yesterday both TC worked fine, but today one TC just could not identify controls (e.g. buttons, checkboxes, etc.) in the application, while the other still could.

Following are the snapshots when the two TC tried to identify an object

1.       TC that broken could not identify the button Start Page, and when navigate to Object Browser, the button is not under the application (Cashlite) treeview

        

     Please refer to Attached file, 3 and 4

2.       TC that is working could identify the button Start Page, and when navigate to Object Browser, the button is under the application (Cashlite) treeview

     Please refer to Attached file, 1 and 2

 

More information:

1.       For the broken TC, I restarted computer and even reinstalled TC, but TC still not work. And both TC could identify third party dialog, e.g. SaveAs dialog. (please to the attached file 5) So I reckon it is an issue with the application. But (go to 2)

2.       I open another application from my company. The result is same, the TC that is broken could not identify controls, while the TC that is fine could identify. So I reckon it is an issue with the machine. But (go to 3)

3.       The machine which has broken TC had the TC be working yesterday. So I reckon it is an issue with TC. But (go to 4)

4.       The TC in the other machine is exactly same as the broken one, and that TC just works fine. So now I reckon I need to go to forum for help. 



Thanks in advance.

 

Kai

3 Replies

  • Hi, Tanya,



    The issue has been solvoed, it is due to .Net Framework.



    The TC version is 9.10.1894.7, the machine updated .Net Framework from 4.5 to 4.5.1 along with Window update automatically at 3:00AM yesterday. So yesterday morning I found TC could not identify WPFObject. 



    I rolled back .Net Framework from 4.5.1 to 4.5, now TC could identify WPFObject.



    FYI, in the TC manual, it says that .NET Framework 4.5.1 is supported. But it seemingly is not supported.



    Cheers.



    Kai

  • Hi Kai,


     


    Judging by the 4.png image, TestComplete cannot recognize your test application as Open. WPFObject objects should be recognized.


    Please make sure that the following plug-ins are installed and enabled:


     - .NET Application Support


     - Open Applications


     - Desktop Applications Testing


     


    Also, please answer the following questions:


    1. What exact TestComplete version are you using (Help | About)?


    2. What .NET Framework is installed on the problematic machine?


    3. What .NET Framework was used to build your tested apps?


     


  • Hi Kai,


     


    Only TestComplete 10 supports .NET Framework 4.5.1.


    In the manual you've read, the product version should be mentioned somewhere.