Ranorex calls the DLL file

Ask general questions here.
OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 3:58 am

Ranorex calls the DLL file

Post by OPT-Liuxm » Tue May 12, 2020 3:59 am

Hi,
I want to make sure...can Ranorex call DLL files?
I wrote my own library in C# and called it with Ranorex.
Thank you all. :D

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex calls the DLL file

Post by odklizec » Tue May 12, 2020 7:34 am

Hi,

Of course, Ranorex can do whatever you are able to write in C# or VB .Net ;) Once you have the dll ready, then simply add it as "reference" to the project of your choice and then you use it via "Using". For more details (step by step instructions), check for example this post:
https://www.c-sharpcorner.com/UploadFil ... n-C-Sharp/
Pavel Kudrys
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

OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 3:58 am

Re: Ranorex calls the DLL file

Post by OPT-Liuxm » Wed May 13, 2020 2:17 am

Yeat,very good.
But...I have another question.
I successfully executed the call to the DLL library,However, the following button click cannot be performed.
I don't know why.

Thank you very much. :D
Attachments
01.png
01.png (29.26 KiB) Viewed 99 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex calls the DLL file

Post by odklizec » Wed May 13, 2020 8:18 am

Hi,

And why do you call dll before "Run" method? have you tried to call it inside Run method instead?

I'm afraid, I don't have any experience with calling dll that way, so I'm not sure why the click is not performed. It sounds like the Run section is not performed at all? And this could be because of an exception in called DLL or completely different reason ;) Have you tried to debug the code? Does it go to Run section?
Pavel Kudrys
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

OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 3:58 am

Re: Ranorex calls the DLL file

Post by OPT-Liuxm » Fri May 15, 2020 8:25 am

Yes, I tried to call it in the run method, but it didn't do the click.
I guess it's an exception to the DLL.
I'm going to try another DLL, maybe it won't be a problem.
thank you. :D