Delegate variable to another Module

Ranorex Spy, Recorder, and Studio.
Posts: 11
Joined: Thu Jun 06, 2013 1:48 pm

Delegate variable to another Module

Post by mind » Thu Jul 18, 2013 2:41 pm


i need to delegate a variable from a user code module to a recording module.
I call the recording module with TestModuleRunner.Run(new RecodingModule());
In the user code module i have a variable. What should i do to delegate the variable to the recording module and how to use it there?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Delegate variable to another Module

Post by Support Team » Fri Jul 19, 2013 1:54 pm


Our Test Suite uses a parameter-less constructor to call Code and Recording modules.
You could create an additional constructor for your Recording module and pass your values to it.
TestModuleRunner.Run(new Recording1("5"));
Markus (T)