a | b/trunk/Xml/junit.xsd | ||
---|---|---|---|
1 | <?xml version="1.0" encoding="UTF-8" ?> |
||
2 | <!-- from https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/junit-4.xsd --> |
||
3 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
||
4 | |||
5 | <xs:element name="failure"> |
||
6 | <xs:complexType mixed="true"> |
||
7 | <xs:attribute name="type" type="xs:string" use="optional"/> |
||
8 | <xs:attribute name="message" type="xs:string" use="optional"/> |
||
9 | </xs:complexType> |
||
10 | </xs:element> |
||
11 | |||
12 | <xs:element name="error"> |
||
13 | <xs:complexType mixed="true"> |
||
14 | <xs:attribute name="type" type="xs:string" use="optional"/> |
||
15 | <xs:attribute name="message" type="xs:string" use="optional"/> |
||
16 | </xs:complexType> |
||
17 | </xs:element> |
||
18 | |||
19 | <xs:element name="properties"> |
||
20 | <xs:complexType> |
||
21 | <xs:sequence> |
||
22 | <xs:element ref="property" maxOccurs="unbounded"/> |
||
23 | </xs:sequence> |
||
24 | </xs:complexType> |
||
25 | </xs:element> |
||
26 | |||
27 | <xs:element name="property"> |
||
28 | <xs:complexType> |
||
29 | <xs:attribute name="name" type="xs:string" use="required"/> |
||
30 | <xs:attribute name="value" type="xs:string" use="required"/> |
||
31 | </xs:complexType> |
||
32 | </xs:element> |
||
33 | |||
34 | <xs:element name="skipped" type="xs:string"/> |
||
35 | <xs:element name="system-err" type="xs:string"/> |
||
36 | <xs:element name="system-out" type="xs:string"/> |
||
37 | |||
38 | <xs:element name="testcase"> |
||
39 | <xs:complexType> |
||
40 | <xs:sequence> |
||
41 | <xs:element ref="skipped" minOccurs="0" maxOccurs="1"/> |
||
42 | <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/> |
||
43 | <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/> |
||
44 | <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/> |
||
45 | <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/> |
||
46 | </xs:sequence> |
||
47 | <xs:attribute name="name" type="xs:string" use="required"/> |
||
48 | <xs:attribute name="assertions" type="xs:string" use="optional"/> |
||
49 | <xs:attribute name="time" type="xs:string" use="optional"/> |
||
50 | <xs:attribute name="classname" type="xs:string" use="optional"/> |
||
51 | <xs:attribute name="status" type="xs:string" use="optional"/> |
||
52 | </xs:complexType> |
||
53 | </xs:element> |
||
54 | |||
55 | <xs:element name="testsuite"> |
||
56 | <xs:complexType> |
||
57 | <xs:sequence> |
||
58 | <xs:element ref="properties" minOccurs="0" maxOccurs="1"/> |
||
59 | <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/> |
||
60 | <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/> |
||
61 | <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/> |
||
62 | </xs:sequence> |
||
63 | <xs:attribute name="name" type="xs:string" use="required"/> |
||
64 | <xs:attribute name="tests" type="xs:string" use="required"/> |
||
65 | <xs:attribute name="failures" type="xs:string" use="optional"/> |
||
66 | <xs:attribute name="errors" type="xs:string" use="optional"/> |
||
67 | <xs:attribute name="time" type="xs:string" use="optional"/> |
||
68 | <xs:attribute name="disabled" type="xs:string" use="optional"/> |
||
69 | <xs:attribute name="skipped" type="xs:string" use="optional"/> |
||
70 | <xs:attribute name="timestamp" type="xs:string" use="optional"/> |
||
71 | <xs:attribute name="hostname" type="xs:string" use="optional"/> |
||
72 | <xs:attribute name="id" type="xs:string" use="optional"/> |
||
73 | <xs:attribute name="package" type="xs:string" use="optional"/> |
||
74 | </xs:complexType> |
||
75 | </xs:element> |
||
76 | |||
77 | <xs:element name="testsuites"> |
||
78 | <xs:complexType> |
||
79 | <xs:sequence> |
||
80 | <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/> |
||
81 | </xs:sequence> |
||
82 | <xs:attribute name="name" type="xs:string" use="optional"/> |
||
83 | <xs:attribute name="time" type="xs:string" use="optional"/> |
||
84 | <xs:attribute name="tests" type="xs:string" use="optional"/> |
||
85 | <xs:attribute name="failures" type="xs:string" use="optional"/> |
||
86 | <xs:attribute name="disabled" type="xs:string" use="optional"/> |
||
87 | <xs:attribute name="errors" type="xs:string" use="optional"/> |
||
88 | </xs:complexType> |
||
89 | </xs:element> |
||
90 | |||
91 | </xs:schema> |