When I first recorded scripts Name mapping was Aliases.Aptify_Shell.AptifyShellForm and now it is Aliases.Aptify_Shell2.AptifyShellForm whereas the project is the same. Aptify_Shell and Aptify_Shell2 is the change that has taken place. Is there any fix for it?
Solved! Go to Solution.
that is odd that testcomplete has created two copies of the same object. in which case i dont think that you even need to do conditional name mapping, since you would only use conditional name mapping to account for an object having multiple acceptance criteria for what should be considered as its identification property.
in which case, you could go ahead and delete one of the two copies, and either go through the trouble of rearranging the children elements within the name mapping tree from aptifyshell2 to aptifyshell1, or start over again by mapping all of the children objects under the same alias.aptify_shell parent.
Use conditional mapping mode -> add new values for this object.
Tried conditional mapping mode but does not work. Please check the image attached below
Just an example:
and see if you can't help using the feature:
or save this object to a variable and search for it with .Find() using the appropriate conditions.
You will need to write a custom function for this.
Or maybe there are other fields by which you can distinguish this object?
what is the difference in terms of the identification properties for Aliases.Aptify_Shell vs Aliases.Aptify_Shell2?
spot that difference, and use either the conditional name mapping as mentioned above, or regexp to account for the marginal differences between the two aliases.
unless you retroactively edited the identification properties of the two alias objects, there is almost no way that that is possible (if you used the record and replay functionality to automatically map your objects). the difference could be as small as one character or digit, process number, object identifier, or whatever else. Otherwise, Testcomplete could not have created a second "copy" of the same object, since the object under question would already have been mapped and identified under those properties.
i have objects that are being incremented at the alias level because of a single backslash being used in identifying the second process as a second object. now i can go ahead and edit the properties to account for the fact that a backslash maybe present in my URL and have that not affect the way things are identified.
could you give us the screenshots of what you are seeing for the identification properties of alias.shell1 and shell 2?
Both have same Process Name that is Aptify Shell but conditional mapping does not work .
I have added an image of conditional mapping in the above comments