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

New issue 874 by [email protected]: Assignment of a list with one element to single scalar results in a scalar that is a list object
http://code.google.com/p/robotframework/issues/detail?id=874

Robot Framework 2.5.6 (Python 2.6.6 on win32)

There is a feature that allows to assign returned elements of a lists directly to multiple scalars. Example: a keyword returns a list of two elements that shall be assigned to two scalars. Such a step can be written as:
${element_1}=  ${element_1}= Test_library.keyword

The defect now is that if a keyword returns a list with one element then ${element_1} becomes a list with one element and not just a referenc to the element:

i.e.
${element_1}=  Test_library.keyword
${element_1} then is of type list with that single element, i.e., [reference to element_1]

The attachment illustrates the defect



Attachments:
        Assign_list_to_scalars.zip  1006 bytes

Reply via email to