Re: Custom Library Keyword and Non Required Values in RIDE

70 views
Skip to first unread message

Pekka Klärck

unread,
Oct 25, 2012, 6:17:36 PM10/25/12
to tr...@maldivica.com, robotframe...@googlegroups.com
2012/10/25 Trey Duskin <tr...@maldivica.com>:
>
> I am trying to write my own custom library, and one of my keywords has an
> extra parameter with a default of None, as such:
>
> def my_cool_keyword(self,arg1,arg2,arg3=None):
>
> In my keyword, I am detecting if arg3 is None or something else and handling
> both. The keyword works as expected, but when I try to use it in RIDE, it
> complains that arg3 requires a value (turns the cell red).

This is odd. RIDE definitely should default values and I don't see
anything wrong in your syntax.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Trey Duskin

unread,
Oct 26, 2012, 1:51:38 PM10/26/12
to robotframe...@googlegroups.com, tr...@maldivica.com
Ah, found the problem... I made that change to the function prototype in the library after I had imported it into RIDE, and RIDE hadn't refreshed it yet.  Relaunching RIDE (I miss the refresh button!) fixed the issue.

Mikko Korpela

unread,
Oct 29, 2012, 2:40:46 AM10/29/12
to tr...@maldivica.com, robotframe...@googlegroups.com
I don't think that the refresh would have helped but you can reload
the current project from the File menu.

The Refresh button was removed as it unfortunately was a very annoying
when working with a very large project with a big load time.

Kind Regards,
Mikko Korpela

2012/10/26 Trey Duskin <tr...@maldivica.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/robotframework-users/-/7Ae8EKADrnsJ.
>
> To post to this group, send email to robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to
> robotframework-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robotframework-users?hl=en.



--
Mikko Korpela
Reply all
Reply to author
Forward
0 new messages