Page 1 of 1

Ranorex calls an external library

Posted: Mon Jun 08, 2020 10:17 am
by OPT-Liuxm
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.

Re: Ranorex calls an external library

Posted: Mon Jun 08, 2020 10:41 am
by odklizec
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?

Re: Ranorex calls an external library

Posted: Tue Jun 09, 2020 2:06 am
by OPT-Liuxm
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

Re: Ranorex calls an external library

Posted: Tue Jun 09, 2020 2:09 am
by OPT-Liuxm
Oh, I forgot to mention that my library is compiled by VS, not Ranorex. :?

Re: Ranorex calls an external library

Posted: Tue Jun 09, 2020 6:11 am
by odklizec
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?

Re: Ranorex calls an external library

Posted: Tue Jun 09, 2020 9:49 am
by OPT-Liuxm
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

Re: Ranorex calls an external library

Posted: Tue Jun 09, 2020 10:50 am
by odklizec
Hi,

Nice to hear that! ;)