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 name and scripts works.
This issue happen. How to resolve it.
Please find the attached screen shot
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
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