Delegate variable to another Module

Ranorex Spy, Recorder, and Studio.
mind
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

Hi,

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?

Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Delegate variable to another Module

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

Hello,

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"));
Regards,
Markus (T)
.
Image