Forum Discussion

andygough1974's avatar
andygough1974
New Contributor
11 years ago

Changing Window Title breaks test

Hi All, I am testing my WPF application, a click event opens a new window with the title "DebugWindow", i made a whole bunch of keyword tests on this window, then realised the window title was ...
  • Andrey_M's avatar
    11 years ago
    Hi Andrew.



    Have you checked name mapping?



    Most likely the window you changed title of was used in name mapping with certain caption (title) value.

    Double click NameMapping component in you project, find mapped window and check (on right pane) which properties TestComplete uses to recognize your window.



    Use Object Spy to get properties of your new window and remap it (you may simply remove old properties in  name mapping and add new one(s) or manually edit value of property (new name of caption/title).



    You may also change the way TC recognizes you window deleting caption and adding "required children" set of nested objects specific to this window only.