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
Document that handling documentation split to multiple columns will change in RF 3.2 #3106
Currently documentation in test data, created for test suite in the setting section or for test/keywords using the [Documentation] setting, is handled so that parts in a single row are concatenated with a space but documentation rows with a newline. For example, if you have a documentation like
Documentation First part. Second part on first row.... Second row.... Third row.
the resulting documentation will be
First part. Second part on first row.\nSecond row.\nThird row.
The motivation to concatenate items in a row with a space is that earlier when test data was in HTML and TSV, it made sense to split long lines to multiple columns. In the plain text format this functionality has no real benefits and the first line in the above example could simply be First part. Second part on first row.. without extra separators between parts.
Different handling of documentation parts is going to cause problems with the new parser in RF 3.2 (#3076). The reason is that in the new design ... is going to be handled earlier than nowadays, at it isn't possible (at least easily) to know should resulting documentation tokens be concatenated with spaces or newlines. It is a lot easier to simply concatenate all documentation tokens with a newline. This shouldn't cause problems because:
As already commented above, in the plain text format there's generally no need to separate parts in a single row.
It generally doesn't matter are parts joined with a space or a newline because the resulting paragraph will look exactly the same when rendered as HTML in logs an reports unless parts accidentally form a list or some other special syntax.
The initial plan was to deprecate concatenating columns with spaces in RF 3.1.2, but it turned out that the deprecation warning would cause so much noise that problems are bigger than benefits. As explained above, we expect the change in RF 3.2 to be so safe that it can be done without a deprecation. We should, however, document the change in the User Guide already now.
Deprecating this functionality would be easy, but I'm afraid there would be lot of unnecessary noise.
For example, our own acceptance test system allows specifying tests expected status in its documentation (StatusChecker tool works similarly) and we have lot of tests that have documentation like
[Documentation] FAIL Expected error message
and all such usages would cause a deprecation warning. This warning would be pretty useless as the expected status and message would still be parsed right after the change and even the resulting documentation in log and report would look identical. After #3150 also documentation on the console would be the same.
In general I believe that the change to concatenate all documentation parts with newline is very unlikely to cause any problems for anyone. On the other hand, notifying users about the change with a deprecation warning in RF 3.1.2 would cause lot of noise. I believe benefits of the deprecation warning are smaller than problems and it isn't a good idea.
Instead of deprecating this behavior, it's better to just document that this functionality will change in RF 3.2. I'll update the title and the original description accordingly.
changed the title [-]Deprecate concatenating documentation columns with spaces (instead of newline)[/-][+]Document that handling documentation split to multiple columns will change in RF 3.2[/+]on Apr 11, 2019
Activity
pekkaklarck commentedon Apr 11, 2019
Deprecating this functionality would be easy, but I'm afraid there would be lot of unnecessary noise.
For example, our own acceptance test system allows specifying tests expected status in its documentation (StatusChecker tool works similarly) and we have lot of tests that have documentation like
and all such usages would cause a deprecation warning. This warning would be pretty useless as the expected status and message would still be parsed right after the change and even the resulting documentation in log and report would look identical. After #3150 also documentation on the console would be the same.
In general I believe that the change to concatenate all documentation parts with newline is very unlikely to cause any problems for anyone. On the other hand, notifying users about the change with a deprecation warning in RF 3.1.2 would cause lot of noise. I believe benefits of the deprecation warning are smaller than problems and it isn't a good idea.
Instead of deprecating this behavior, it's better to just document that this functionality will change in RF 3.2. I'll update the title and the original description accordingly.
[-]Deprecate concatenating documentation columns with spaces (instead of newline)[/-][+]Document that handling documentation split to multiple columns will change in RF 3.2[/+]