Agreed, the problem is that at a later time, after I have recorded and the name mapping has occurred, the script breaks down on playback because TestComplete is now looking for the raw object again for some odd reason.
Take my newest example:
In my code I use the value "Aliases.ws32.frm_PortfolioQuickView.fraNotificationsDisplay.chkStatus_3" this is the name mapped value.
Later on I run the script and it breaks down because it can't find "Aliases.ws32.frm_PortfolioQuickView.fraNotificationsDisplay.chkStatus_3" it is now looking for "Aliases.ws32.frm_PortfolioQuickView.VBObject("fraNotificationsDisplay").VBObject("chkStatus_3")"
At this point in time if I do a new recording of the object, Test Complete will begin working acuratly again because it now knows the object as "Aliases.ws32.frm_PortfolioQuickView.fraNotificationsDisplay.chkStatus_3" again.
Does that make sense?
Quick steps:
1. I record and get namemapped value
2. Use in my script
3. (at a later time)During playback Test complete looks for the Raw value
4. I record second time
5. Test Complete works again.