missing method in User Code list of available methods

Bug reports.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

missing method in User Code list of available methods

Post by odklizec » Thu Jun 20, 2013 5:08 pm

Hi folks,

I'm experiencing a weird issue in 4.0.4. It seems that the list of methods available for User Code action displays only the methods with no or just one argument? Any method with two or more arguments is not listed...
MissingMethod.png
MissingMethod.png (26.77 KiB) Viewed 1085 times
The project compiles fine with no errors or warnings so I believe there is no problem with the method declaration? Did I find a bug in 4.0.4 or is this a known RX limitation?
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

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

Re: missing method in User Code list of available methods

Post by odklizec » Fri Jun 21, 2013 9:18 am

OK, I found the reason of this issue and it has nothing to do with number of arguments. It seems the User Code arguments accepts only strings? So the only solution seems to be creating my methods with string arguments and convert them inside the method to numerical values. Not a big deal, but it would be nice to have a direct support for mixed arguments in User Code action.
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: missing method in User Code list of available methods

Post by krstcs » Fri Jun 21, 2013 1:19 pm

I second this feature request.

It would be nice to have user code that accepts other types, including accepting repository object types so we can directly pass repository objects to user code.
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: missing method in User Code list of available methods

Post by Support Team » Fri Jun 21, 2013 2:18 pm

Hello,

Thank you for your suggestions.
That's correct, it is only possible to pass string parameters in a user code action.
I added an entry into our bug tracking system and we will discuss the feature internally.
Thank you!

Regards,
Bernhard
.
Image