dpiotrowski
13 years agoContributor
Problems with same MappedName for different objects
Hey, I've came across some problem with the name mapping.
I have several property items in the application under test with indexes 1-8. They are recognized by TestComplete in the object browser as:
Sys.Process("AdaptiveVisionStudio").WinFormsObject("MainWindow").WinFormsObject("dockContainer4").WinFormsObject("parametersWindow").WinFormsObject("filterParameters").WinFormsObject("panelMain").WinFormsObject("PropertyItem")
and they differ only with the index value.
The problem is all the these property items (1 to 8) were automatically mapped by TC to the same MappedName, that is:
Aliases.AdaptiveVisionStudio.MainWindow.dockContainer4.parametersWindow.filterParameters.panelMain.PropertyItem2
This name references to the property item with index '0' so now when I click in the recording on any of these property items each time TC recognizes the one with index '0' (instead of these that were actually clicked).
What I'd like to to is change the MappedName for the property items manually (and setting for these new names proper indexes) but TestComplete doesn't let me saying that the property items are already mapped to the name Aliases.AdaptiveVisionStudio.MainWindow.dockContainer4.parametersWindow.filterParameters.panelMain.PropertyItem2 (which is correct from my point of view only for property item with index '0').
Can you help me with this one? I thought I understand how it works but now I'm really confused since different objects are identified with the same name and I don't seem to find a way how to change it.
I have several property items in the application under test with indexes 1-8. They are recognized by TestComplete in the object browser as:
Sys.Process("AdaptiveVisionStudio").WinFormsObject("MainWindow").WinFormsObject("dockContainer4").WinFormsObject("parametersWindow").WinFormsObject("filterParameters").WinFormsObject("panelMain").WinFormsObject("PropertyItem")
and they differ only with the index value.
The problem is all the these property items (1 to 8) were automatically mapped by TC to the same MappedName, that is:
Aliases.AdaptiveVisionStudio.MainWindow.dockContainer4.parametersWindow.filterParameters.panelMain.PropertyItem2
This name references to the property item with index '0' so now when I click in the recording on any of these property items each time TC recognizes the one with index '0' (instead of these that were actually clicked).
What I'd like to to is change the MappedName for the property items manually (and setting for these new names proper indexes) but TestComplete doesn't let me saying that the property items are already mapped to the name Aliases.AdaptiveVisionStudio.MainWindow.dockContainer4.parametersWindow.filterParameters.panelMain.PropertyItem2 (which is correct from my point of view only for property item with index '0').
Can you help me with this one? I thought I understand how it works but now I'm really confused since different objects are identified with the same name and I don't seem to find a way how to change it.