Forum Discussion
By the looks of it, you need to organise your mapped object correctly. Based on the following website http://secure.smartbearsoftware.com/samples/testcomplete15/dialogs/, I have defined the mapped objects as,
ParentProperty values that defines 'browser'Property value that defines the webpageControlDialog box within the controlShow alert linkYou need to ensure that the structure of your mapped objects is correctly defined, and that it matches your webpage DOM (you seem to have two BrowserWindow beneath chrome?). Ensure that the mapped object property values are also correctly defined (the first xpath for AddWireButton is not correct XPath expression).
To instruct TestComplete on how to locate the objects in your tested application, name mappings must identify the objects correctly and uniquely.
- DBowerman10 months agoOccasional Contributor
All objects within NameMapping have been added automatically by the recording process. Until we started experiencing the random failures, I spent very little time reviewing/updating information in NameMapping.
I have a case already opened with SmartBear trying to figure out why NameMapping is creating all these different paths and how to correct. It's a mess for sure.
I'll review the information you provide and see if I can get things cleaned up. Thank you for responding.
- rraghvani10 months agoChampion Level 3
While recording, anything you click on, it will automatically create a name mapping. Sometimes it will create duplicates, with different property values.
When you play this back, TC will get confused, as it doesn't know what actual object you are referring too!
I create name mappings based on the UI objects I will interact with, slowly building the tree structure. I use Object Spy and Object Browser to find my UI object, right click and select Map Object, followed by Choose a name and properties manually.
Object Name MappingIt is a slow process, but it works 100%
Related Content
- 6 years ago
Recent Discussions
- 2 days ago