cancel
Showing results for 
Search instead for 
Did you mean: 

Help With Object Not Found Error

SOLVED
Highlighted
Occasional Contributor

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)

error-example-1.JPG

 

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Help With Object Not Found Error

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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: Help With Object Not Found Error

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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
Community Manager

Re: Help With Object Not Found Error

Thank you Alex!

 

Hi @ddguy, have you tried implementing the suggested approach?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: Help With Object Not Found Error

Hi Alex and Sonya,

 

I will implement this soon and try it out, thank you for the reply.!

Highlighted
Community Manager

Re: Help With Object Not Found Error

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors