Forum Discussion

GBrg's avatar
GBrg
New Contributor
4 years ago

TestComplete unable to identify any object - C++ Application

Hello All;

 

I am a very new user to this product and was wondering if there are any helpful tips to get TestComplete to recognise my application.

The application I would like to automate is a Point of Sale application based on C++. This is a legacy product but is still in mass use today.

When I attempt the Object Spy on the window it can only discover the whole application (runs in Full Screen) (POS1.JPG).

I get a UIAObject for the application (Compris_GPOS) with a blank visualisation.

 

I am unable to record any clicks or screen outputs past this and a little stumped.

 

We have been informed that the application may not be suitable for automation, but looking on the SmartBear website is states ANY 32/64bit application, so a little confused.

 

Any tips would be greatly received.

 

Many thanks

 

 

  • GBrg :

    Hi Gerard,

     

    unless RTTI or external Debug has been enabled

    If debug information for C/C++ application is absent then TestComplete can access only those objects (windows) that are exposed by the operating system. The same windows can be seen in, say, Spy++.

    With debug information been accessible, TestComplete can access internal objects of the tested application much like debugger does.

    Depending on the given tested application, the following options are possible in case debug information is absent:

    -- Use keyboard shortcuts to trigger this or that function and/or activate this or that field/control (e.g.: <mainWindow>.Keys('^S') to call Save As dialog);

    -- Image-based testing;

    -- Coordinate-based testing;

    -- Text recognition technology (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/about.html).

     

    • GBrg's avatar
      GBrg
      New Contributor

      Thank you for the quick response.

       

      In essence TestComplete cannot operate against a C++ application unless RTTI or external Debug has been enabled at point of compile?


      Cheers

       

      Gerard

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        GBrg :

        Hi Gerard,

         

        unless RTTI or external Debug has been enabled

        If debug information for C/C++ application is absent then TestComplete can access only those objects (windows) that are exposed by the operating system. The same windows can be seen in, say, Spy++.

        With debug information been accessible, TestComplete can access internal objects of the tested application much like debugger does.

        Depending on the given tested application, the following options are possible in case debug information is absent:

        -- Use keyboard shortcuts to trigger this or that function and/or activate this or that field/control (e.g.: <mainWindow>.Keys('^S') to call Save As dialog);

        -- Image-based testing;

        -- Coordinate-based testing;

        -- Text recognition technology (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/about.html).