Forum Discussion

mohameda's avatar
mohameda
New Contributor
13 years ago

Want to print all object name from Name mapping ... Need Help !!!

I want to list all objects in the Name Mapping window...

I have used Child object with 'MappedName' property. .



Its working when application is opened but i have objects from various windows and i want to list all in one shot.



When application is closed or if i navigate to other pages i am not able to get the mapped name ... 



Any one help me on this would be great .. Thanks in advance :)

1 Reply


  • Hi Mohamed,


     


    That's expected that you can successfully access only the mapped objects that are visible on the screen at the moment. If you want to get the Name Mapping tree, you will have to parse the Name Mapping file (<ProjectName>/NameMapping/NameMapping.tcNM). This file has an XML structure. Refer to the "Working With XML Files From Scripts" article to learn how to work with XML files in TestComplete.