Forum Discussion

lleppert's avatar
lleppert
Contributor
10 years ago

Sporadic Namemapping Issues

Hello,   I have been having a namemapping issue with the last two tests that I have recorded. When I recorded them they were fine, but occasionally on playback it tells me that the object namemappi...
  • rickh_28's avatar
    10 years ago

    I've seen the same issue a lot on my system.  It seems that, for some reason, TestComplete occasionally loses the ability to see into open applications for a short time. But it is usually able to get it back, if you do a couple of things. I've been able to solve it by using a combination of things. First, you can use the General Open Applications property, specifically the Method Invoke Timeout property.

     

    I've also had success with the the WaitAliasChild method, and the Exists property, along with a RefreshMappingInfo call. It ends up looking like this:

     

    var w = Aliases.mySoftware.myForm.WaitAliasChild("myControl", 10000);

    if (!w.Exists) mySoftware.RefreshMappingInfo;

     

    Good luck!