Skip to content

Commit 155aada

Browse files
committed
Add schemaversion to output.xml.
Part of schema update (robotframework#3726).
1 parent 11ec381 commit 155aada

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/schema/robot.02.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<xs:attribute name="generator" type="xs:string"/>
1212
<xs:attribute name="generated" type="xs:string"/>
1313
<xs:attribute name="rpa" type="xs:boolean"/>
14+
<xs:attribute name="schemaversion" type="xs:int"/>
1415
</xs:complexType>
1516
<xs:complexType name="Suite">
1617
<xs:choice maxOccurs="unbounded">

src/robot/output/xmllogger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def _get_writer(self, path, rpa, generator):
3434
writer = XmlWriter(path, write_empty=False, usage='output')
3535
writer.start('robot', {'generator': get_full_version(generator),
3636
'generated': get_timestamp(),
37-
'rpa': 'true' if rpa else 'false'})
37+
'rpa': 'true' if rpa else 'false',
38+
'schemaversion': '2'})
3839
return writer
3940

4041
def close(self):

0 commit comments

Comments
 (0)