Ask a Question

object recognition for delphi object is slow.

SOLVED
Subbulakshmi
Frequent Contributor

object recognition for delphi object is slow.

Hi,

 

Our application is developed in Delphi. There is one frame, where I click on Save, one dialog box appears. Even if it is visible, Test Complete takes lot of time to click on OK button. I have added WndClass and WndCaption properties. Tried with FindChild as well. It takes same time only. 

Regards,
Subbulakshmi
11 REPLIES 11
tristaanogre
Esteemed Contributor

I'm assuming you're using NameMapping.  Is the Extended Find flag checked on any level of the mapped object tree leading up to that object?  Extended Find operates similar code to FindChild so the timing may be similar.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Hi,

 

I tried checking Extended Find. It took the same time. 

Regards,
Subbulakshmi

So... it was unchecked and now it's checked?  I kinda meant the opposite, that the flag may be checked.

Next question... I'm assuming that you're adding appropriate "wait" commands for the dialog?  It could be that the test is running faster than the application and so things are being attempted before the app is ready, causing confusion.

 

But, honestly... what we need is more detail.  Please post a screen shot of the Object Browser properties of the object that is taking too much time to be recognized.  Also, a screenshot of how it is Mapped in NameMapping would be helpful.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Novari-QA
Frequent Contributor

I just had this isssue. I am glad someone else has as well.


Steps to fix or at least for me:
Right Click Name Mapping

Open Source File Location

Copy the NameMapping file.

Paste File onto your Desktop

Delete All of your Objects in your name mapping tree... all but the Sys Object

Right Click Name Mapping and use the option "Merge With"
Select the file you put on your Desktop.

Bam everything is fast again.

tristaanogre
Esteemed Contributor

That's interesting... it could be that the NameMapping file gets corrupted in some way after a large number of edits.  

Question: Are you using the NameMapping images?  We're not and we're not seeing major slow down in our object recognition.  Could be an effect of the NameMapping images. Would be interesting to find out.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Subbulakshmi
Frequent Contributor

Hi,

 

This solution is not working for me. 

Regards,
Subbulakshmi

Hi,

 

It was checked earlier and now I have unchecked. It takes the same time as always. Please find screenshot for name mapping attached. 

Regards,
Subbulakshmi

Hi,

 

We are not using images. 

Regards,
Subbulakshmi

In order to identify where the slowness is getting started, try below steps.

 

Just try from parent like below,

 

Sys.HighLightObject(NameMapping.Sys.LandmarkII);

Sys.HighLightObject(NameMapping.Sys.LandmarkII.TLMKMessage);

 

If you find the slowness in 1st line then you want to give unique properties to the get object quickly. if you have similar objects it may take time to  select the object based upon your properties.


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

cancel
Showing results for 
Search instead for 
Did you mean: