Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
11 years ago
Solved

Apps Automatically Getting Renamed?

I have a keyword test, and had to re-record part of it, and my app got automatically renamed. How can I fix this?



Example: Say my app is named APP12. It gets renamed to APP122.
  • Hi,

     

    Basically, the 'Overlapping window' message means that your test code tries to perform some UI-related action (clicking, dragging, typing) against the UI object that is overlapped at the moment with some other UI object. In order to get rid of this problem, you must move away or close the overlapping object before performing the needed action.

    Regarding your specific problem: a lot of controls that drop down something (list, calendar window, etc.), implement those dropping down elements as a separate window that (in terms of Windows' window hierarchy and, subsequently, TestComplete's tested objects tree) is not related to the parent window that opened it.

    You may try either record selection from the Rx drop-down or calendar and check the recorded code. Or you may use the Object Browser in the Point-and-click mode (the button with the arrow), open drop-down or calendar, hover mouse over the parent window (the one with the down arrow) and the child one (the one with the list or the calendar itself) and check if the same or different windows are identified.

    I bet that the windows will be different. In this case you must either adopt your code to operate against those child windows or try to register Rx controls as a custom controls (http://support.smartbear.com/viewarticle/55321/ and http://support.smartbear.com/viewarticle/61593/) and check if it helps.

     

    BTW, it might help if you provide us with the code that fails.

1 Reply

  • Hi Heidi,

     


    Actually, it's not renamed. I guess you got an additional branch, APP122, in the Name Mapping tree. This might happen as the values of the properties you used to map the APP12 object were changed. As a result, TestComplete recognized a window as a new one and mapped it anew, giving a new name. 


     


    You need to do the following:


    1. Check the mapping criteria you are using to map APP12.


    2. Delete the properties whose values are changed from run to run. It may be the Index property or something else. Refer to the "Modifying Mapping Criteria" article describing how to do this.


    3. Delete the new APP122 branch from the mapping tree.


    4. Start recording your test again.