Repository navigation
Conversation
|
|
||
| def __init__(self, xml_writer): | ||
| self._writer = xml_writer | ||
| self.root = None |
There was a problem hiding this comment.
Is this needed for something?
There was a problem hiding this comment.
Good point. Not Anymore
| if suite.metadata or suite.doc: | ||
| self._writer.start('properties') | ||
| if suite.doc: | ||
| self._writer.element('property', attrs={'name': 'Suite Documentation', 'value': suite.doc}) |
There was a problem hiding this comment.
Just Documentation would probably be better than Suite Documentation. We use that in the data as well.
| if suite.metadata: | ||
| for n, v in suite.metadata.items(): | ||
| self._writer.element('property', attrs={'name': n, 'value': v}) | ||
| self._writer.end('properties') |
There was a problem hiding this comment.
No need for if here, it would be fine to just loop over possible metadata items. Using name and value´ instead of nandw` would be a bit better as well. We've generally used one character variable names only in very tight scopes such as in list comprehensions.
| ... Test failed but its tags matched '--SkipOnFailure' and it was marked skipped.\n\nOriginal failure:\n${MESSAGES} | ||
| Element Attribute Should Be ${skips}[0] type SkipExecution | ||
| Run Keyword And Expect Error No element matching 'testsuite/properties' found. | ||
| ... Get XUnit Node testsuite/properties |
There was a problem hiding this comment.
Using Element Should Not Exist would be better than checking error message.
| [Arguments] ${source} | ||
| ${properties} = Get Elements ${source} properties | ||
| Length Should Be ${properties} 1 | ||
| [Return] ${properties} |
There was a problem hiding this comment.
You can use new RETURN here and in the above keyword instead of [Return].
|
Apparently #4193 has replaced this PR. |
This is a draft PR for solving issue #3944 Request for log_property functionality for xunit writer.
Now also tests implemented.