Status: Accepted Owner: ---- Labels: Type-Defect Priority-Medium Target-2.2
New issue 413 by jprantan: When multiple variable files with the same name are used, extra variables might be imported
http://code.google.com/p/robotframework/issues/detail?id=413 When variable file with the same name are used, it is possible that even the correct variable file is imported, also extra variables are imported. If we have file vars.py with attributes foo and bar and vars.py with attribute foo, when the latter one is imported after the first vars.py file, Robot gets variables foo and bar, even there should be only foo. This is caused by the Python's reload function which does not remove attributes, it only adds and updates those. Failing test is attached to reproduce the problem. Dynamic method get_variables can be used [1] to avoid this problem, when variable files with the same name are used. [1] http://robotframework.googlecode.com/svn/tags/robotframework-2.1.1/doc/userguide/RobotFrameworkUserGuide.html#getting-variables-from-a-special-function Attachments: variable_file_import.zip 2.0 KB -- 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
