Forum Discussion
Dear AlexKaras,
Thank you for your reply, I know about the concept of recurssion and how to do it also but my question is,
eg. The below is the object
Aliases.Process().VCLObject(text).VClObject(text1).VCLObject(text2)
is it possible to do above object mapping via recurssion ?
function for texts
recursion function returs VCLObject(texts)
thanks and regards
SivaKartheek Sreeram
You're already accessing them via Aliases... why would you need to use recursion? Simply map the components you need to use.
- sivakarthik6 years agoContributor
Hi Tristaanogre,
thanks, Actually for some components the mapping is too long and some of the elements have the same mapping and at the end of the objects are different so I thought of recurssion.
thanks and regards
SivaKartheek Sreeram
- AlexKaras6 years agoChampion Level 3
Hi,
The beauty of Aliases is that their tree can be reorganized to be less deep and more convenient for use. This is described here: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/about.html#aliases-and-mapped-objects. Have you considered this option? Does it fit your needs?
- tristaanogre6 years agoEsteemed Contributor
What AlexKaras said... that's the whole point of Aliases... you MAP the whole thing, but then you use the Aliases to "telescope" the objects down to what is strictly necessary for your code.
Related Content
- 3 years agoIuliaVascan
- 12 years agomaxthomassin
Recent Discussions
- 2 days agoGane195