Automatically assign UI objects an ID or Name
My company has a Java application built, and no objects have any assigned "name" or "id". I am using Rational Functional Tester, and want to assign all UI object a unique ID and no longer care about weighing other recognition properties. The manual effort in going throught the entire source code to setName("") for each object is extensive. Another solution I am trying, and may work but has problems is assigning names through Component Hierarchy. (example: JWindow_JPanel_JButton1, etc ...) Only problem with this is that it depends on layout, and names will change if UI is rearranged, or on deletion or addition of UI Objects.
Are there any other suggestions to name UI objects uniquely, and not be affected by UI changes?