You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Result model: Loudly deprecate not needed attributes and remove already deprecated ones #4846
The result model (robot.result.TestSuite) got separate objects for representing control structures (For, If, ...) only in RF 4.0 (#3749). Before that control structures were modeled as keywords with a type attribute telling what they actually represent. For backwards compatibility the new objects got keywords specific attributes like name. These attributes were deprecated from the beginning and it's not finally time to remove them.
This change will require changing our log file generation code, because it handles control structures as keywords, but that's not too big a problem. The change obviously affects all external tools handling control structures as keywords as well making the change backwards incompatible. We couldn't do it in a bug fix or even in a feature release, but doing it in a major release ought to be fine.
UPDATE: It turned out that we hadn't properly deprecated all the attributes. Some only used our custom @deprecated decorator, but the decorator didn't do anything. Instead of removing these attributes, we decided to change the decorator so that now there's an actual deprecation warning. Those attributes that already emitted deprecation warnings were removed.
changed the title [-]Remove deprecated attributes in result model making control structures look like keywords[/-][+]Remove deprecated attributes in result model[/+]on Aug 28, 2023
changed the title [-]Remove deprecated attributes in result model[/-][+]Result model: Loudly deprecate not needed attributes and remove already deprecated ones[/+]on Oct 4, 2023
Control structures were earlier masked to look like keywords. Nowadays they are considered totally different and their attributes name, kwnane, libname, doc, args, assign, tags and timeout have been "loudly" deprecated.
Activity
[-]Remove deprecated attributes in result model making control structures look like keywords[/-][+]Remove deprecated attributes in result model[/+]libdoc: remove datatypes generation
model: remove deprecated attributes
jsmodelbuilder: do not use deprecated attrs
model: remove deprecated attributes
jsmodelbuilder: do not use deprecated attrs
model: remove deprecated attributes
jsmodelbuilder: do not use deprecated attrs
model: remove deprecated attributes
2 remaining items
jsmodelbuilder: do not use deprecated attrs
model: remove deprecated attributes
jsmodelbuilder: do not use deprecated attrs
model: remove deprecated attributes
jsmodelbuilder: do not use deprecated attrs
[-]Remove deprecated attributes in result model[/-][+]Result model: Loudly deprecate not needed attributes and remove already deprecated ones[/+]Result model: Add message to body items, remove doc from controls.
pekkaklarck commentedon Nov 8, 2023
The following attributes were removed from the result model. They all had been deprecated since RF 4.0.
TestCase.keywords. UseTestCase.body,TestCase.setupandTestCase.teardowninstead.TestSuite.keywords. UseTestSuite.setupandTestSuite.teardowninstead.Keyword.keywords. UseKeyword.bodyandKeyword.teardowninstead.Keyword.children. UseKeyword.bodyinstead.TestCase.critical. The whole criticality concept has been removed.TestCase.keywordsandTestSuite.keywordswere also present in the execution model and removed from there as well.pekkaklarck commentedon Nov 9, 2023
Control structures were earlier masked to look like keywords. Nowadays they are considered totally different and their attributes
name,kwnane,libname,doc,args,assign,tagsandtimeouthave been "loudly" deprecated.Result control stuctures: Enhance deprecation of keyword facade.