Forum Discussion

dkasirajan's avatar
dkasirajan
Contributor
8 years ago

In object browser sometime names displays "WindowsForms10...." than Name and then test fails

In object browser sometime  names displays "WindowsForms10...." than Name and then test fails with object recognition  error. on restarting application or test complete . then testcomplete identifies...
  • pramoddn's avatar
    pramoddn
    8 years ago

    Use NameMappingRefresh before performing an action on the object, it may resolve your issue example as given below

     

      NameMapping.Sys.Refresh()
      NameMapping.Sys.RefreshMappingInfo()
      aqUtils.Delay(500)

     

      object,Click()

      //or any other operation

     

    small delay is required (or observed) to make it work smooth.

     

    Also try the below settings

    Options->Engines->Name Mapping->Update Name Mapping during test run

     

    Make that check box enable (Checked)

     

    Hope it may resolve your problem

     

  • dkasirajan's avatar
    dkasirajan
    8 years ago

    I have added this code. this  problem happens occasionally   . i did n't this problem again. so i am not sure. Because earlier i used to refresh  object browser manually it did not solve problem. so let me check it for a while to see it happens or not.

    I really appreciate the response. Thanks.

    Devaki