Forum Discussion

JNeedles's avatar
JNeedles
Contributor
13 years ago

Recommendations to mass edit name mapping?

Our software has several child items that are the same on every parent item.  Because the old and new versions of the software vary in some object identifiers we're using conditional statements on the child objects.  Has anyone found a way to update all these child objects at once? I was wondering if a Name Template would work, but I can't quite grasp how those work.



Example:



Old Version



Foo -> Table -> Object1 (WndCaption: XYZ) -> TextObject1 (Name: TextObj(*))



New Version 



Foo -> Table - > Object1 (WndCaption: XYZ) -> TextObject1 (ClrClassName: TextBox)





So we have the name map as:



Foo

    Table

         Object1

             TextObject1 (Name equals TextObj(*) OR ClrClassName equals TextBox)



Object2 also has a TextObject with the same identifiers.  



Foo-> Table -> TextObject1 with Extended find won't work because Object 1 and 2 are open at the same time and so the first instance is always matched.



Suggestions?





1 Reply


  • Hi Jack,


     


    I don't think that the Name Mapping template will help you in this case. What I'd like to suggest is executing your current test over the new app version when the Update Name Mapping during test run option is enabled. In this case, TestComplete will update the current Name Mapping criteria, and you can control this process via the Update Name Mapping wizard. Refer to the "Updating Name Mapping During Test Run and at Design Time" article for details.