Hello -- When I create stores while recording, and then give the store a custom name, sometimes the xml file where the store is actually save is based on my custom name, and sometimes it is based on the objects name in code. For instance, if I create three comparisons at different points for my applications main screen, and name them (Using the Rename context menu in the Stores panel) Comp1, Comp2, Comp3; the xml files associated with them are now Comp1.xml, frmMain.xml, and frmMain.xml. Since the title bar is different for all three, the last two have a problem...one will always fail, depending on which compare was created first. I cannot find a way to properly change the name of the file TestComplete creates or uses, and so now I have two different compares referencing one single XML file. Any suggestions? Thanx.
When saving an object's properties the Name field of the 'Store Object(s) Properties' contains the name that will be used as a name for both the .xml file and the item of the 'Stores | Objects' panel. If you rename the item in the Objects panel, the .xml file won't be renamed.
I assume that you performed the following operations that resulted into the issue: you saved properties of some object and specified some name for it (for example, frmMain). Then you renamed the item (for example, to Comp1), but this item was still referring to the frmMain.xml file. Then you saved properties of another object and specified the same name for it (frmMain). Since the Object panel didn't contain items with this name, TestComplete overwrote the frmMain.xml file. Thus, you got two different items that referred to the same .xml file. To avoid such a situation please make sure that there is no .xml file with the name you want to specify in the 'Store Object(s) Properties' dialog when saving a new item.