Comment #12 on issue 576 by [email protected]: Parsing model enhancements
http://code.google.com/p/robotframework/issues/detail?id=576

Settings are difficult to deal with in a test case. For example, there is no list of settings. I have to iterate over all attributes and call is_setting. IMO the settings should be a list or dictionary so I can easily iterate over them -- they shouldn't be mixed in with internal attributes.

Also, settings need a unified API. Right now, if I want to modify a setting I have to special-case anything that is an instance of settings.Fixture because it uses .name and .args rather than .value like all the other settings.

ideally I should be able to change all the settings with something as simple as:

    new_setting = ["setup": ..., "teardown": ..., ...]
    for setting in testcase.settings:
        setting.value = new_setting[setting.name]


Reply via email to