Hi,
I have scripts (all user codes) and compiled to EXE and each of those scripts has a common user function. Now if I'll be having some changes on that user function, I have to re-compile all those scripts which is really time consuming because there are at least 2K scripts. Can someone give me an idea on how to have a better solution for this?
Thanks in advance for your help.
-- Hans
Calling User Functions From Compiled Script
-
- Posts: 12
- Joined: Fri Mar 18, 2016 3:06 pm
- Location: Norway
-
- Posts: 12
- Joined: Fri Mar 18, 2016 3:06 pm
- Location: Norway
Re: Calling User Functions From Compiled Script
Never mind, just ignore this post. I have just found a solution. Thanks.
Re: Calling User Functions From Compiled Script
Hi,
I was about to suggest you to build your custom methods in a dll and reference this dll in all your projects. Then it should be required to rebuild just the dll. Something as described here:
https://www.ranorex.com/blog/organizing ... nOfModules
Anyway, could you please share your solution? I'm sure, it may help other forum members
I was about to suggest you to build your custom methods in a dll and reference this dll in all your projects. Then it should be required to rebuild just the dll. Something as described here:
https://www.ranorex.com/blog/organizing ... nOfModules
Anyway, could you please share your solution? I'm sure, it may help other forum members
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 12
- Joined: Fri Mar 18, 2016 3:06 pm
- Location: Norway
Re: Calling User Functions From Compiled Script
Thanks for your suggestion.
Actually it is similar to what you have suggested. I just don't know how to create custom DLLs so I just compiled the project (EXE) which contains all custom methods and reference this to my projects.
Actually it is similar to what you have suggested. I just don't know how to create custom DLLs so I just compiled the project (EXE) which contains all custom methods and reference this to my projects.
Re: Calling User Functions From Compiled Script
Hi,
Your solution is basically the same as I suggested Just for future, you can select the type of app in Project settings >> Application tab. Class Library would turn the project to dll...
Your solution is basically the same as I suggested Just for future, you can select the type of app in Project settings >> Application tab. Class Library would turn the project to dll...
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 12
- Joined: Fri Mar 18, 2016 3:06 pm
- Location: Norway
Re: Calling User Functions From Compiled Script
Woow! I didn't know that... This is really what I am looking for. You save my day!
Re: Calling User Functions From Compiled Script
You are welcome
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration