Forum Discussion

paulohg6's avatar
paulohg6
Occasional Contributor
5 years ago
Solved

I updated my testcomplete from version 12 to 14 now it does not recognize the mapping of my screen

My procedure In TC 14:

 

procedure abriRotina(rotina:string);
begin
Sys.Process('PCINF000').Window('TfrmPrincipal').Window('TEdit', '', 3).Keys(rotina+'[Enter]');
end;

My Procedure in TC 12 

procedure abriRotina(rotina:string);
begin
Sys.Process('PCINF000').VCLObject('frmPrincipal').VCLObject('edtCodigoRotina').Keys(rotina+'[Enter]');
end;

This code are in Flat mode.

I need too remap all my  tests???? How to replace the Window to VLOBject?

How can i get the same map object of testcomplete 12 in 14???

  • What language is your application undertest written in?  Delphi?  C++?  You may need to make some adjustments to recognize the application as open.  Also, go to File | Install Extensions and make sure that the Desktop option has all sub options checked.

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    What language is your application undertest written in?  Delphi?  C++?  You may need to make some adjustments to recognize the application as open.  Also, go to File | Install Extensions and make sure that the Desktop option has all sub options checked.

  • I have seen this for years since version 9. If you search on these forums you will find simular observations going back years.

    I consider it a bug in TestComplete and have code to handle it. We don't use name mapping because of this.

    Here is what I have found that will minimize it.

    Make sure that you set the file compatibility property to 'Run this program as an administrator' for all users for both TestComplete.exe and TestExecute.exe

    In your Project\Properties\Open Applications\General  move the NativeDelphiObject to the top of the list.