How to Resolve the "Preparing for an Object recognition hint" Takes too much time
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to Resolve the "Preparing for an Object recognition hint" Takes too much time
While Execution the test takes too much time and says "Preparing for an object Recognition Hint" and starts loading and take too much time .
How to avoid this case
as i am using the descriptive Programming to find the object it shows when it is trying to find the object but doesn't find
i need to stop to aviod this and rerun the execution.
Pls Help me
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Basically, that object recognition hint means that your code is attempting to access an on screen object that, due to any number of factors, cannot be found. Something is incorrect in how you are attempting to identify the object.
So... you need to go to your Descriptive Programming definition for that object and determine if you are properly identifying the object.
Additionally... if you let the automation continue through that notice, it will write to the test log an object recognition hint as a warning. Please post here the information that shows in the "additional info" tab for that log record.
One final note: Descriptive Programming is methodology for UFT/QTP... you're not using those tools any more. It's better for you to learn the recommended methodologies for TestComplete. Please review documentation for NameMapping as well as the FindChild, and FindAllChildren methods of TestComplete for recognizing and accessing UI objects in the application.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
by providing the PropArray and ValueArray
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then most likely there's something wrong with your property and value arrays. You are attempting to find an object and then trying to access it... and the find failed. Examine your arrays and make sure they are correct.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the object is not found, then you need to have your code check for that.... the "Preparing for an Object recognition hint" is coming up because you're trying to access a non-existant object... So... avoid accessing the non-existant object. The problem is simply that.
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
