Hello,
Sometimes, for branches and special loops, it's necessary to start other modules from user code modules. Just be a aware that this way you are hiding things from the Test Suite view. And there is the problem to forward variables. A solution to the latter could be to manually create variables via
Insert Module Variable in the editor's context menu and instead of using the string in the property you forward to the according variables in the called modules.
[TestVariable("A83ECAE2-3EB7-48B3-88BA-15AEC5AF4766")]
public string MyTestVariable
{
get { return CalledRecording.Instance.MyTestVariable; }
set { CalledRecording.Instance.MyTestVariable = value; }
}We are currently working on an extension to the Test Suite to make this less necessary to manually call other modules.
Regards,
Roland
Ranorex Support Team