Forum Discussion
Hi,
> then I would like to do it recurssively is it possible to do that ?
Recursive code call is a feature of scripting language and thus it definitely can be done in TestComplete.
Code template is like this:
function main()
{
value = RecursiveFunction(<param>);
}
function RecursiveFunction(<param>)
{
param1 = <ModifyParamAsNeeded(param)>;
// check if recursion should continue
if (<ShouldContinueWithRecursion(param)>)
return RecursiveFunction(<param1>);
else
return <param1>;
}
- sivakarthik6 years agoContributor
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
- tristaanogre6 years agoEsteemed Contributor
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
Related Content
- 12 years ago
- 3 years ago