Forum Discussion

sameerjade's avatar
sameerjade
Frequent Contributor
8 years ago

Object spy cant highlight some objects anymore after upgrade to Visual Studio 2017

Hello,

 

Our application recently upgraded to use Visual Studio 2017. After this upgrade, the object spy is unable to highlight certain objects in the application which it was able to before this upgrade. Now, many tests are failing because of this issue.

 

Has anyone else experienced this issue?

 

Thank you,

 

Sameer

  • Hello,

     

    Thank you for your replies. 

     

    >> what is your application ?

    It is a desktop application and is QT based. It uses QT 5.8.

     

    >> What is your version of TestComplete?

    TC Version 12.4

     

    Did some more investigation with our developers and found the issue; it seems to be fixed now. After update to VS 2017, there were some objects (objects of our tested application) whose MFC version had changed. The 'Name' and 'WndClass' property values under NameMapping needed to be updated for these objects to reflect the new MFC version. For eg - AfxBar120 had to be changed to AfxBar140. Without this change, TC was not able to identify this object.

     

    Thank you,
    Sameer

  • NisHera's avatar
    NisHera
    Valued Contributor

    what is your application ? i mean what technology you use?

    Visual studio is a tool to develop application. Visual studio itself do not effect to Test Complete functions. But it could be some classes / configuration did missed in upgrade. 

     

    object spy identify object with debug information. If those are not compile to application this could happen. 

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    What is your version of TestComplete?
    As per documentation, support for VS 2017 was added to TC 12.3.

    • sameerjade's avatar
      sameerjade
      Frequent Contributor

      Hello,

       

      Thank you for your replies. 

       

      >> what is your application ?

      It is a desktop application and is QT based. It uses QT 5.8.

       

      >> What is your version of TestComplete?

      TC Version 12.4

       

      Did some more investigation with our developers and found the issue; it seems to be fixed now. After update to VS 2017, there were some objects (objects of our tested application) whose MFC version had changed. The 'Name' and 'WndClass' property values under NameMapping needed to be updated for these objects to reflect the new MFC version. For eg - AfxBar120 had to be changed to AfxBar140. Without this change, TC was not able to identify this object.

       

      Thank you,
      Sameer