Forum Discussion
Dmitry_Nikolaev
Staff
14 years agoHello Madhavi,
I understand that you want to read an INI file, but you are telling that you have problems reading it and you do not tell how exactly you do this. Please clarify whether you are using a custom script, a special DLL, a .NET assembly, a custom script extension, etc. Without knowing how exactly you try to read a text file, I cannot tell anything about why you have problems doing this.
But why? The Name Mapping feature provides much more convenient and flexible way to work with objects. The way you are trying to follow limits you with the default object names that use a very limited list of identification properties while Name Mapping allows you using any properties to identify an object and, moreover, additional recognition techniques: mapping an object by required children, specifying custom conditional mapping criteria, searching for an object at any levels of hierarchy.
Customer is not comfortable with name mapping.They wanted to maintain recognition strings in separate file.Please let me know if this is the right approach and help me with the code.Thanks for your help in advance.
If want to get rid of long object names, you can remove the intermediate objects from the hierarchy by settings up the Aliases tree in the desired way.
I think that you just do not understand how the Name Mapping feature is powerful. I recommend that you view the [url=http://www.automatedqa.com/products/testcomplete/screencasts/reliable-tests-for-dynamic-objects/]Creating Reliable Tests For Dynamic Objects with Name Mapping
[/url] video that should reveal all the pros of this functionality.