Forum Discussion
Is it possible to link children to a fake alias?
For example
we have 2 screens. Login and Login_2
Id like the aliases to look like this
- LoginScreen
- UsernameTB
- PasswordTB
- PinTB
But since we have 2 pages, it comes out like this
- LoginScreen
- UsernameTB
- PasswordTB
- LoginPinScreen
- PinTB
Id like the LoginScreen to be a fake alias. and have the children mapp to their correct urls.
Every item in Aliases must have a representation in Mapped Objects. Remember, mapped objects does the identification. So, if there's an item in Aliases, TestComplete tries to go to that item and check the Mapped Objects to see if it can identify it, inclduing parent objects. The Aliases need to represent something of the hierarchy of the Mapped Objects... so, if PinTB is not somewhere in the descendant tree of LoginScreen, you can't make it a child of LoginScreen in the Aliases. Again, keep in mind, Aliases is a translation of Mapped Objects but it still needs to follow, somewhat, the logic of Mapped Objects with regards to identification.
The logic would be, to identify PinTB, it would first need to identify the parent. So.... in what you want, it would first go to LoginScreen and identify it. Then it would say, "Find the child of LoginScreen that matches the criteria of PinTB". Because PinTB is not an actual child of LoginScreen, this identification will fail.