Ensure Objects Not Used in Test Before Removing
In our trial and error approach to learning TC we have found ourselves with excess baggage (unused mapped objects and Aliases) which we wish to clean up. At some point we disabled 'Map object names automatically' and have a mix of tests using Mapped and Aliased object. How do we safely remove objects not used in keyword and script tests?
In the screen capture below you can see there are multiple 'frameTCmwebtestAuthorizepurchase' nodes under the 'sectionPrimarycontent' node as well as others.
I've looked at the 'NameMapping.tcNM' file and see two root nodes (NameMapping and Aliases) which seems intuitive. Using Notepad++ we can search all files in a directory for a given value and see that all three are in use. Looking at each node reveals that althought the names of the frames are similar the idStr(s) are slightly different -- probably since they were created before we disabled 'Map object names automatically'. One of the frameTCmwebtestAuthorizepurchase is for the return and differs obviously from the other two in the idStr. However, the other two are similar enough I'm unsure which to remove. Keep in mind both 'frameTCmwebtestAuthorizepurchase' and 'frameTCmwebtestAuthorizepurchase3' are found when searching the 'KeywordTests' folder. There idStr differs as follows:
't_CMWebTest_authorizepurchase_authorizepurchase_content' 't_CMWebTest_AuthorizePurchase_AuthorizePurchase__content'
Both can be found from the Alias browser when performing a 'Find Mapped Object'
How do I know that I know which to remove from the 'Aliases' and 'Mapped Objects' explorer such that tests won't be broken? Or should I just leave it alone as the tests are running sucessfully? Is there a clean tool (feature request) for this?