Forum Discussion

russo_n's avatar
russo_n
New Contributor
12 years ago

Object Names have changed

I've completed approximately 70 Keyword Tests for my application, but all Object names have changed.



So Objects such as "Aliases.DAI_ApplicationPortal.frmFranchiseMain.tclSubway" are now "Aliases.StrategicUniversalBusinessSystems_AR.frmFranchiseMain.tclSubway".



I know I can manually fix these tests, but would like a more efficient way of doing this, as it could easily happen again.



I've looked at the documentation for Name Mapping, Aliases, etc. but cannot figure out how to do this.



Your help would greatly be appreciated,

Nick



  • I generally dislike "Aliases", they are very static and clumsy.

    I usualy assign objects with Process(xyz).FindChild("Name", "*ObjectName*", 1234).



    That way, if the programmers gave the objects unique names you should be able to find them, and if they don't have a unique name you can usually chain FindChilds until they are unique.

    In this manner you find the objects even if their path's change.

    And even if you have to modify it, it is ussualy just modifying a single word.