Mass Update Namemap Properties
Is there some method to mass update the properties of namemap fields?
For technical reasons, our development department had to change the ID value associated with tons of fields in our web application. The new ID value is the same as the old but now has "_input" appended to it. For example, NameFirst is now NameFirst_input. We have hundreds of fields mapped using idStr property and I need all of them modified to have "_input" added to the expected property value.
Is there any easy solution to this? Any way to write a script to handle this? Is there any way to even get a list of all fields in the namemap that use idStr as one of their identification properties?
Here is how the field change:
Edit to add:
I just realized the namemap file is basically an XML file. If I write some code to update this raw file will it corrupt it in TestComplete? I might be able to write some code to update the values I need.
Solved! Go to Solution.
No built in "Mass update" feature is available across all NameMappings. At least, not that I'm aware of.
you CAN edit the XML file but I'm always a bit leary of doing so.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Updating the XML directly worked for me. I wrote some code to read the file as a XML object and modified the properties as needed. I am not sure if this would work for every issue, but worked for me since all I needed to do was add "_input" to the end of some property names.