Page 1 of 1
How to create global method of user code
Posted: Wed Jul 04, 2012 10:10 am
by derko
Hello,
I need to create global method of user code that I can use within every recording module. It should look like this: Add New Action -> User Code -> choose my method. Is it possible?
Thank you.
Re: How to create global method of user code
Posted: Wed Jul 04, 2012 1:05 pm
by Support Team
Hello,
You can for instance create a C# Class with your method and call this method in each of your UserCode actions method.
You unfortunately can't directly call a method from another recording in your action table.
Regards,
Markus
Ranorex Support Team
Re: How to create global method of user code
Posted: Wed Jul 04, 2012 1:21 pm
by swmatisa
Re: How to create global method of user code
Posted: Wed Jul 04, 2012 1:27 pm
by derko
Thanks for your answer,
I found another simple way to resolve my problem. When I copying User Code line from action table to another recording module, all user code automatically copying in this module.
Regards,
Dmitry
Re: How to create global method of user code
Posted: Wed Jul 04, 2012 1:46 pm
by Support Team
Hi,
Right, forgot the way with the base class
.
Thanks serge for the suggestion
.
Regards,
Markus
Ranorex Support Team