Ask a Question

TestComplete crashes when searching for an object not existing in the name mapping file

SOLVED
hannecroonen
Contributor

TestComplete crashes when searching for an object not existing in the name mapping file

Hi guys,

Anyone else having trouble using TestComplete the latest version?

I just updated my installation, but since then whenever I try to run a test and try to use a certain object that does not exist in the name mapping file the whole program crashes.

Used to be just a stop of the test and information the object does not exist.

Right now TestComplete shuts down and you have to add breakpoints everywhere to find the right point where it crashed since there's also no log file available.

 

Thanks for the help!

 

6 REPLIES 6
Marsha_R
Community Hero

try to use a certain object that does not exist in the name mapping file the whole program crashes.

 

  • If you comment out that part of the test, does the rest of it run successfully?
  • We need some more details about the crash.  What exactly happens?  Is there an error message?  Does TestComplete lockup or close?  Screenshots or a video would be helpful.

Marsha_R
[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

hannecroonen_0-1646312271585.png

This is the message I get.
Code is literally just 'Aliases.button.Click()', but the button item does not exist in Name Mapping. 

As a workaround, I would try adding that object to the name mapping.

 

To get to the root cause, I would contact Support directly.  Here's the link

https://support.smartbear.com/testcomplete/message


Marsha_R
[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

The problem was these objects should have been added but the properties changed throughout updates...
But thanks for the help!

 

I think I found the actual problem; a recursive call appeared and I let it stop the run but I also tried stopping the run using the stop button.

Probably using both was the problem and made the program crash...

From my experience I would say that the recursive call was never resolving and that caused the crash.

 

If you have objects that are changing with a web page or some similar circumstance, you can look into mapping them with wildcards

https://support.smartbear.com/testcomplete/videos/using-the-wildcard-in-the-name-map/


Marsha_R
[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

Thanks for the help! 

Looks like something I could use yes 🙂

cancel
Showing results for 
Search instead for 
Did you mean: