Ranorex calls an external library

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

Ranorex calls an external library

Post by OPT-Liuxm » Mon Jun 08, 2020 10:17 am

Hello everyone.

I still have a problem that I haven't solved.

I use Ranorex to call outside libraries, and then I call the library's methods,As shown in figure 1.

When I started Ranorex Studio to run the tests, the tests, after executing the user code, could not execute the recorded results, and I don't know why. :?: :?: As shown in figure 2.
Attachments
02.png
02.png (23 KiB) Viewed 55 times
01.png
01.png (25.9 KiB) Viewed 55 times

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

Re: Ranorex calls an external library

Post by odklizec » Mon Jun 08, 2020 10:41 am

Hi,

Could you please post the content of GetMessage? Have you tried to debug the code? Are you sure the library is compiled with the same version of Ranorex?
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 an external library

Post by OPT-Liuxm » Tue Jun 09, 2020 2:06 am

Thanks for your reply.

what you said is....NET version?
Is the.net version of Ranorex available at help-> About?

I added the library file through the.net Assembly Browser,as shown in the figure.

Best wishes for you. :D
Attachments
02.png
02.png (36.54 KiB) Viewed 46 times
01.png
01.png (59.51 KiB) Viewed 46 times

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

Re: Ranorex calls an external library

Post by OPT-Liuxm » Tue Jun 09, 2020 2:09 am

Oh, I forgot to mention that my library is compiled by VS, not Ranorex. :?

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

Re: Ranorex calls an external library

Post by odklizec » Tue Jun 09, 2020 6:11 am

Hi,

OK, I though the library you are using is Ranorex-based lib, and this is why I asked if it was compiled with the same version of Ranorex. Anyway, have you tried to compile the library in debug mode and then tried to debug the whole test? Just set a breakpoint at GetMessage step, run the test and go into the library by F11 (step into) key. Hope this helps? My guess is, that it fails somewhere in the library?
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 an external library

Post by OPT-Liuxm » Tue Jun 09, 2020 9:49 am

Yes, when I make a consistent version of.NET and test it in debug mode, it can be executed.
Thank you very much. :D :D :D

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

Re: Ranorex calls an external library

Post by odklizec » Tue Jun 09, 2020 10:50 am

Hi,

Nice to hear that! ;)
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