Here is the solution:
function runTestItemRoutine(TestItemLevel)
{
if (TestItemLevel.ElementToBeRun != null)
{
var caption = TestItemLevel.ElementToBeRun.Caption.split("\\");
if (caption[0] == "Script")
{
var script = caption[1].split(" - ");
if (script[1] != "Main")
Runner.CallMethod(script[0] + "." + script[1], user, password, accounts);
}
}
}
You need to pass all project variables( Ex, user, password, accounts) used in the some of the recursive scripts as parameters to the Runner.CallMethod (Value, param1, param2 , ...) as in the above example.
Hope this helps if someone has the same issue.
Best Regards,
Ilija