Help With Object Not Found Error
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Help With Object Not Found Error
Hi,
I do QA for a desktop application. This application has UI threads that are sometimes slow, which I believe is causing our nightly Test Complete tests to fail with "the object does not exist" errors.
Some important notes:
- In the screenshots of the errors, I can see the button/window/object which indicates that it exists, however TestComplete can not find it
- TestComplete keeps searching for the object, in a seemingly recursive fashion (see image below)
Is there a way to retry the last step that caused the logErrorHandler event? Maybe within the logErrorHandler code? Or is there some other solution to this?
I have tried using the Aliases.myApp.Refresh() within the error handler and it does not help. I would like to avoid using delays between steps as that would make our tests too long. I also would like to avoid writing custom code which write the test name into a file and re-runs the tests that way, since the errors would still show up and fail the Jenkins job, which is what we use to run the nightly tests on a VM.
Any help would be very much appreciated!
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would start from figuring out what causes the 'Catastrophic failure' error. It might be an indication of some crash of/in the tested application or in TestComplete itself.
You may also consider to use .WaitXXX methods (WaitWindow(), WaitAliasChild(), etc.) to dynamically wait until the sought for object becomes available.
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Alex!
Hi @ddguy, have you tried implementing the suggested approach?
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex and Sonya,
I will implement this soon and try it out, thank you for the reply.!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We'll be waiting for your results in this thread then. For now, let me mark Alex's suggestion as a temporary solution.
Sonya Mihaljova
Community and Education Specialist
