Issue 81 in robotframework: need a keyword to check item counts of list/dictionary in collection library.

1 view
Skip to first unread message

codesite...@google.com

unread,
Sep 3, 2008, 11:40:01 PM9/3/08
to robotframe...@googlegroups.com
Issue 81: need a keyword to check item counts of list/dictionary in
collection library.
http://code.google.com/p/robotframework/issues/detail?id=81

New issue report by DeonWu:
sometimes, we only want to check the length of list or dictionary. but not
found a suitable keyword to do it. so we used a adaptation solution like:

| Should be equal as number | ${list.__len__()} | 2 | Not found a pair of
unit |

may be collections library should provide a unify keyword for dictionary
and list. like:

| Items Count should be | ${list} | 2 | Not found a pair of unit |

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Sep 4, 2008, 3:50:27 AM9/4/08
to robotframe...@googlegroups.com
Issue 81: need a keyword to check item counts of list/dictionary in
collection library.
http://code.google.com/p/robotframework/issues/detail?id=81

Comment #1 by laukpe:
The BuiltIn library has 'Length Should Be' and 'Get Length' keywords that
can be used
also with lists and dictionaries. These kws weren't mentioned in the
Collections
library documentation but I added that info in r601. See:
http://robotframework.googlecode.com/svn/trunk/doc/libraries/Collections.html


Issue attribute updates:
Status: Done
Labels: -Type-Defect Type-Documentation Target-2.0.2

Reply all
Reply to author
Forward
0 new messages