-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
robot.xsd
395 lines (393 loc) · 21.2 KB
/
robot.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="5">
<xs:annotation>
<xs:documentation xml:lang="en">
= Robot Framework output.xml schema =
Compatible with Robot Framework 7.0 and newer. For more details and
for older versions, go to
https://github.com/robotframework/robotframework/tree/master/doc/schema
Due to XSD 1.1 not being widely adopted, this schema is XSD 1.0 compatible.
If you can use XSD 1.1, you can replace `xs:choice` groups with `xs:all`
groups to make the schema more strict.
</xs:documentation>
</xs:annotation>
<xs:element name="robot" type="Robot" />
<xs:complexType name="Robot">
<xs:sequence>
<!-- Executed suite structure. -->
<xs:element name="suite" type="Suite" />
<!-- Execution statistics. Not read by Robot Framework itself. -->
<xs:element name="statistics" type="Statistics" minOccurs="0" />
<!-- Possible execution errors and warnings. -->
<xs:element name="errors" type="Errors" minOccurs="0" />
</xs:sequence>
<xs:attribute name="generator" type="xs:string" />
<xs:attribute name="generated" type="xs:dateTime" />
<!-- True when executing tasks, false (default) when executing tests. -->
<xs:attribute name="rpa" type="xs:boolean" />
<!-- Version of the schema output.xml is compatible with. Must match
the `version` attribute of the `xs:schema` root element. -->
<xs:attribute name="schemaversion" type="SpecVersion" />
</xs:complexType>
<xs:simpleType name="SpecVersion">
<xs:restriction base="xs:integer">
<xs:minInclusive value="3" />
<xs:maxInclusive value="5" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Suite">
<xs:choice maxOccurs="unbounded">
<!-- These keywords are possible suite setup and teardown.
They must have the `type` attribute set accordingly. -->
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="2" />
<xs:element name="suite" type="Suite" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="test" type="Test" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="doc" type="xs:string" minOccurs="0" />
<xs:element name="meta" type="Metadata" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="source" type="xs:string" />
<xs:attribute name="id" type="xs:string" />
</xs:complexType>
<xs:complexType name="Metadata">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="Error">
<xs:choice maxOccurs="unbounded">
<xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Test">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="doc" type="xs:string" minOccurs="0" />
<xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="timeout" type="Timeout" minOccurs="0" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="line" type="xs:integer" />
</xs:complexType>
<!-- Keywords can be regular keywords or setup and teardown keywords.
If the latter, they must have the `type` attribute set accordingly. -->
<xs:complexType name="Keyword">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Assignment -->
<xs:element name="arg" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Arguments -->
<xs:element name="doc" type="xs:string" minOccurs="0" />
<xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="timeout" type="Timeout" minOccurs="0" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="owner" type="xs:string" /> <!-- Library or resource file name. -->
<xs:attribute name="source_name" type="xs:string" /> <!-- Original name with embedded arguments. Not used otherwise. -->
<xs:attribute name="type" type="KeywordType" /> <!-- Only used with setups and teardowns. -->
</xs:complexType>
<xs:simpleType name="KeywordType">
<xs:restriction base="xs:string">
<xs:enumeration value="KEYWORD" /> <!-- Default when the attribute is not set. -->
<xs:enumeration value="SETUP" />
<xs:enumeration value="TEARDOWN" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="For">
<xs:choice maxOccurs="unbounded">
<xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Loop variables -->
<xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Loop values -->
<xs:element name="iter" type="ForIteration" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="flavor" type="ForFlavor" />
<xs:attribute name="start" type="xs:string" /> <!-- Used if IN ENUMERATE has `start`. -->
<xs:attribute name="mode" type="xs:string" /> <!-- Used if IN ZIP has `mode`. -->
<xs:attribute name="fill" type="xs:string" /> <!-- Used if IN ZIP has `fill`. -->
</xs:complexType>
<xs:simpleType name="ForFlavor">
<xs:restriction base="xs:string">
<xs:enumeration value="IN" />
<xs:enumeration value="IN RANGE" />
<xs:enumeration value="IN ENUMERATE" />
<xs:enumeration value="IN ZIP" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ForIteration">
<xs:choice maxOccurs="unbounded">
<!-- Loop variables with iteration specific values. -->
<xs:element name="var" type="ForIterationVariable" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="ForIterationVariable">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="If">
<xs:choice maxOccurs="unbounded">
<xs:element name="branch" type="IfBranch" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="IfBranch">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="type" type="IfType" use="required" />
<xs:attribute name="condition" type="xs:string" />
</xs:complexType>
<xs:simpleType name="IfType">
<xs:restriction base="xs:string">
<xs:enumeration value="IF" />
<xs:enumeration value="ELSE IF" />
<xs:enumeration value="ELSE" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Try">
<xs:choice maxOccurs="unbounded">
<xs:element name="branch" type="TryBranch" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="TryBranch">
<xs:choice maxOccurs="unbounded">
<xs:element name="pattern" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="type" type="TryType" use="required" />
<xs:attribute name="pattern_type" type="xs:string" />
<xs:attribute name="assign" type="xs:string" />
</xs:complexType>
<xs:simpleType name="TryType">
<xs:restriction base="xs:string">
<xs:enumeration value="TRY" />
<xs:enumeration value="EXCEPT" />
<xs:enumeration value="ELSE" />
<xs:enumeration value="FINALLY" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="While">
<xs:choice maxOccurs="unbounded">
<xs:element name="iter" type="WhileIteration" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="condition" type="xs:string" />
<xs:attribute name="limit" type="xs:string" />
<xs:attribute name="on_limit" type="xs:string" />
<xs:attribute name="on_limit_message" type="xs:string" />
</xs:complexType>
<xs:complexType name="WhileIteration">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Var">
<xs:choice maxOccurs="unbounded">
<xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="scope" type="xs:string" />
<xs:attribute name="separator" type="xs:string" />
</xs:complexType>
<xs:complexType name="Return">
<xs:choice maxOccurs="unbounded">
<xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Break">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Continue">
<xs:choice maxOccurs="unbounded">
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="status" type="Status" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Message">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="time" type="xs:dateTime" use="required" />
<xs:attribute name="level" type="MessageLevel" use="required" />
<xs:attribute name="html" type="xs:boolean" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="MessageLevel">
<xs:restriction base="xs:string">
<xs:enumeration value="TRACE" />
<xs:enumeration value="DEBUG" />
<xs:enumeration value="INFO" />
<xs:enumeration value="WARN" />
<xs:enumeration value="ERROR" />
<xs:enumeration value="FAIL" />
<xs:enumeration value="SKIP" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Status">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="status" type="StatusValue" use="required" />
<xs:attribute name="start" type="xs:dateTime" />
<xs:attribute name="elapsed" type="xs:float" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="StatusValue">
<xs:restriction base="xs:string">
<xs:enumeration value="PASS" />
<xs:enumeration value="FAIL" />
<xs:enumeration value="SKIP" />
<xs:enumeration value="NOT RUN" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Timeout">
<xs:attribute name="value" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="Statistics">
<xs:all>
<xs:element name="total" type="TotalStatistics" />
<xs:element name="tag" type="TagStatistics" />
<xs:element name="suite" type="SuiteStatistics" />
</xs:all>
</xs:complexType>
<xs:complexType name="TotalStatistics">
<xs:sequence>
<xs:element name="stat" type="TotalStat" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="TagStatistics">
<xs:sequence>
<xs:element name="stat" type="TagStat" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="SuiteStatistics">
<xs:sequence>
<xs:element name="stat" type="SuiteStat" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="TotalStat">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="pass" type="xs:integer" />
<xs:attribute name="fail" type="xs:integer" />
<xs:attribute name="skip" type="xs:integer" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="TagStat">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="pass" type="xs:integer" />
<xs:attribute name="fail" type="xs:integer" />
<xs:attribute name="skip" type="xs:integer" />
<xs:attribute name="doc" type="xs:string" />
<xs:attribute name="links" type="xs:string" />
<xs:attribute name="info" type="xs:string" />
<xs:attribute name="combined" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="SuiteStat">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="pass" type="xs:integer" />
<xs:attribute name="fail" type="xs:integer" />
<xs:attribute name="skip" type="xs:integer" />
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="name" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="Errors">
<xs:sequence>
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:schema>