Forum Discussion

mortenb123's avatar
mortenb123
Contributor
2 months ago

Winform Preparing an object recognition hint. terribly slow.

I just upgraded our TestExecute Workstation from 8GB win10 to 64GB win11

Far more recent processor and faster SSD.

The app is an old C# winform app we have recompiled frequently when there are updates and new compiler/.NET.

It was quite fast on win7 8GB, then slow on  win10, and now everything is fast except for the
`Preparing an object recognition hint.` It is even slower on the new machine.

It may be win11, but it is a winform with lots of widget, I know Microsoft deprefacted winform, probably removing some stuff TE needed to do fast lookups in win7. TE now needs around 1minute to get the xml for the winform.

Are there any ways to speed it up? Add some debug libs when compiling?

Product manager do not warrant rewriting it to WPF or UWP.

 

 

 

 

 

11 Replies

  • To help isolate the root cause, can you create a new TestComplete project solely to check out the `Preparing an object recognition hint.` step that takes long time?

    Do you get the same slow behavior in the new project?

      • mortenb123's avatar
        mortenb123
        Contributor

        Adding objects with ObjectSpy all goes fine. But the tree is massive. the NameMapping.tcNM file is 8000 lines. and the TypeInfo.dat is 2.6MB

  • Also, TestComplete has global NameMapping settings and project based runtime delays and code based delays that can be changed.  These delays will affect the object recognition and are independent of the speed of the system.   A 10,000 ms delay set in code or in the name map settings to aid in object ID stability on the slower system will still take 10,000 ms on the new system.

  • Not sure what version of TC/TE you are using, but create a new project and change the Object Search Strategy in Project Settings to see if that makes any difference. Also, disable 'Collect usage statistics', 'Use extended find when possible' - it might help!

     

  • Did a little subtest only usong this view, and it is smooth, no waiting, so it is the namemapping and typeinfo processing that takes it toll.

    We are using latest version of TC 15.73.16

    • rraghvani's avatar
      rraghvani
      Icon for Champion Level 3 rankChampion Level 3

      Since you have mentioned "8000 lines", I don't think there's anyway of speeding this process up.