[UserCodeMethod] not displayed in UserCode library

Ranorex Studio, Spy, Recorder, and Driver.
qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

[UserCodeMethod] not displayed in UserCode library

Post by qa-auto » Thu Sep 29, 2022 10:30 pm

Hi,

I have an existing class where I am adding new user code methods. I have the correct tags in but to no avail - the method doesn't show up in the library in 10.2.4.
....
[UserCodeCollection]
public class TableUserCodeCollection
{


..... [UserCodeMethod]
public static void RemoveStoreRuleset(Element tableRuleset, string targetRulesetName)
{
// just created this using right-click Insert UserCode Method. Saved, rebuild - doesn't show
// added the signature by TYPING it in not copying, saved rebuild - still won't show

}

What am I missing?? I have many UserCodeCollection classes with UserCodeMethods. This occurs from time to time even in previous releases. It wastes a lot of time each time.

Help! Thank you!

qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

Re: [UserCodeMethod] not displayed in UserCode library

Post by qa-auto » Thu Sep 29, 2022 11:09 pm

SOLVED:

Parameter type Element is not allowed, changed it to RepoItemInfo and it is displayed.

See last line in this thread
https://www.ranorex.info/viewtopic.php? ... ary#p71709

Doc
https://www.ranorex.com/help/latest/ran ... darguments