My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 768: Get Length doesn't work on result of Get Variables
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  KariH...@gmail.com
Closed:  Jan 2011


Sign in to add a comment
 
Reported by bryan.oa...@gmail.com, Jan 27, 2011
I'm trying to write some tests that test my variable files, and was trying to check that the right number of variables are imported. I want to get a count of all variables, import something, then count again. However, Get Length can't be used to count the result from Get Variables I get the error "Could not get length of '<robot.running.namespace._VariableScopes instance at 0xa203f0c>"

Here's the first part of the test case:

*Test Case*	*Action*	*Argument*	*Argument*
Smoke	[Documentation]	Verify that all the values in a small mapping file exist as variables					
	${variables}=	Get Variables					
	get length	${variables}					

Jan 30, 2011
Project Member #1 janne.t....@gmail.com
This is due to the fact that Get Variables returns a dictionary-like object (_VariableScopes) which doesn't seem to have __len__ implemented. This is trivial to fix.
Status: Accepted
Labels: Target-2.5.6
Jan 31, 2011
#2 KariH...@gmail.com
(No comment was entered for this change.)
Status: Started
Owner: KariHusa
Jan 31, 2011
#3 KariH...@gmail.com
This issue was updated by revision r4567.


Implemented __len__ so that the get length works for return value of Get
Variables keyword.
Status: Done
Mar 16, 2011
#4 KariH...@gmail.com
This issue was updated by revision a57a82835e8f.


Implemented __len__ so that the get length works for return value of Get
Variables keyword.
Sign in to add a comment

Powered by Google Project Hosting