| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|---|
| 3 | xmlns:docbook="http://docbook.org/ns/docbook" |
|---|
| 4 | xmlns:tc="http://jcoderz.org/test-specifications" |
|---|
| 5 | targetNamespace="http://jcoderz.org/test-specifications"> |
|---|
| 6 | <xsd:import schemaLocation="http://www.docbook.org/xsd/4.2/docbook.xsd"/> |
|---|
| 7 | |
|---|
| 8 | <xsd:simpleType name="AreaTopicType"> |
|---|
| 9 | <xsd:restriction base="xsd:string"> |
|---|
| 10 | <xsd:enumeration value="Functional" /> |
|---|
| 11 | <xsd:enumeration value="Non-Functional" /> |
|---|
| 12 | </xsd:restriction> |
|---|
| 13 | </xsd:simpleType> |
|---|
| 14 | <xsd:simpleType name='useCaseStepId'> |
|---|
| 15 | <xsd:restriction base='xsd:string'> |
|---|
| 16 | <xsd:pattern value='UC-[0-9]+-[0-9]+|UC-[0-9]+-E[0-9]+-[0-9]+'/> |
|---|
| 17 | </xsd:restriction> |
|---|
| 18 | </xsd:simpleType> |
|---|
| 19 | <xsd:simpleType name='scrnoType'> |
|---|
| 20 | <xsd:restriction base='xsd:string'> |
|---|
| 21 | <xsd:pattern value='[tT][aA][cC][iI]-[0-9]+|[eE][xX][tT][0-9]+'/> |
|---|
| 22 | </xsd:restriction> |
|---|
| 23 | </xsd:simpleType> |
|---|
| 24 | <xsd:simpleType name="AutomationType"> |
|---|
| 25 | <xsd:restriction base="xsd:string"> |
|---|
| 26 | <xsd:enumeration value="Automatic" /> |
|---|
| 27 | <xsd:enumeration value="Manual" /> |
|---|
| 28 | </xsd:restriction> |
|---|
| 29 | </xsd:simpleType> |
|---|
| 30 | <xsd:simpleType name='testCaseId'> |
|---|
| 31 | <xsd:restriction base='xsd:string'> |
|---|
| 32 | <xsd:pattern value='[A-Z]{3,4}_[1-9]{1}[0-9]{0,1}[0-9]{4}'/> |
|---|
| 33 | </xsd:restriction> |
|---|
| 34 | </xsd:simpleType> |
|---|
| 35 | <xsd:simpleType name='issueId'> |
|---|
| 36 | <xsd:restriction base='xsd:string'> |
|---|
| 37 | <xsd:pattern value='[A-Z]+[\-]+[1-9]+'/> |
|---|
| 38 | </xsd:restriction> |
|---|
| 39 | </xsd:simpleType> |
|---|
| 40 | <xsd:simpleType name='stepId'> |
|---|
| 41 | <xsd:restriction base='xsd:string'> |
|---|
| 42 | <xsd:pattern value='[0-9]{1,2}'/> |
|---|
| 43 | </xsd:restriction> |
|---|
| 44 | </xsd:simpleType> |
|---|
| 45 | <xsd:simpleType name="LevelType"> |
|---|
| 46 | <xsd:restriction base="xsd:string"> |
|---|
| 47 | <xsd:enumeration value="System" /> |
|---|
| 48 | <xsd:enumeration value="Integration" /> |
|---|
| 49 | <xsd:enumeration value="Performance" /> |
|---|
| 50 | <xsd:enumeration value="Load/Stress" /> |
|---|
| 51 | <xsd:enumeration value="Scalability" /> |
|---|
| 52 | <xsd:enumeration value="High Availability" /> |
|---|
| 53 | </xsd:restriction> |
|---|
| 54 | </xsd:simpleType> |
|---|
| 55 | <xsd:simpleType name="PriorityType"> |
|---|
| 56 | <xsd:restriction base="xsd:string"> |
|---|
| 57 | <xsd:enumeration value="Low" /> |
|---|
| 58 | <xsd:enumeration value="Medium" /> |
|---|
| 59 | <xsd:enumeration value="High" /> |
|---|
| 60 | </xsd:restriction> |
|---|
| 61 | </xsd:simpleType> |
|---|
| 62 | <xsd:simpleType name="VarietyType"> |
|---|
| 63 | <xsd:restriction base="xsd:string"> |
|---|
| 64 | <xsd:enumeration value="Positiv" /> |
|---|
| 65 | <xsd:enumeration value="Negativ" /> |
|---|
| 66 | </xsd:restriction> |
|---|
| 67 | </xsd:simpleType> |
|---|
| 68 | <xsd:simpleType name="TestType"> |
|---|
| 69 | <xsd:restriction base="xsd:string"> |
|---|
| 70 | <xsd:enumeration value="Black Box" /> |
|---|
| 71 | <xsd:enumeration value="White Box" /> |
|---|
| 72 | </xsd:restriction> |
|---|
| 73 | </xsd:simpleType> |
|---|
| 74 | <xsd:simpleType name="State"> |
|---|
| 75 | <xsd:restriction base="xsd:string"> |
|---|
| 76 | <xsd:enumeration value="draft" /> |
|---|
| 77 | <xsd:enumeration value="final" /> |
|---|
| 78 | </xsd:restriction> |
|---|
| 79 | </xsd:simpleType> |
|---|
| 80 | |
|---|
| 81 | <xsd:element name="ref"> |
|---|
| 82 | <xsd:complexType> |
|---|
| 83 | <xsd:attribute name="id" type="xsd:string" use="required"/> |
|---|
| 84 | </xsd:complexType> |
|---|
| 85 | </xsd:element> |
|---|
| 86 | |
|---|
| 87 | <xsd:element name="precondition"> |
|---|
| 88 | <xsd:complexType mixed="true"> |
|---|
| 89 | <xsd:choice> |
|---|
| 90 | <xsd:element ref="tc:ref" maxOccurs="unbounded" minOccurs="0"/> |
|---|
| 91 | </xsd:choice> |
|---|
| 92 | </xsd:complexType> |
|---|
| 93 | </xsd:element> |
|---|
| 94 | |
|---|
| 95 | <xsd:element name="action" type="xsd:string" /> |
|---|
| 96 | <xsd:element name="areatopic" type="tc:AreaTopicType"> |
|---|
| 97 | |
|---|
| 98 | </xsd:element> |
|---|
| 99 | <xsd:element name="cut" type="xsd:string" /> |
|---|
| 100 | <xsd:element name="depends" type="xsd:string"/> |
|---|
| 101 | <xsd:element name="description" type="xsd:string" /> |
|---|
| 102 | <xsd:element name="docbase" type="xsd:string" /> |
|---|
| 103 | <xsd:element name="equiclass"> |
|---|
| 104 | <xsd:complexType /> |
|---|
| 105 | </xsd:element> |
|---|
| 106 | <xsd:element name="evaluation" type="tc:AutomationType" /> |
|---|
| 107 | <xsd:element name="execution" type="tc:AutomationType" /> |
|---|
| 108 | <xsd:element name="state" type="tc:State"/> |
|---|
| 109 | <xsd:element name="expected" type="xsd:string" /> |
|---|
| 110 | <xsd:element name="id" type="xsd:string" /> |
|---|
| 111 | <xsd:element name="input" type="xsd:string" /> |
|---|
| 112 | <xsd:element name="inputvalues"> |
|---|
| 113 | <xsd:complexType /> |
|---|
| 114 | </xsd:element> |
|---|
| 115 | <xsd:element name="level" type="tc:LevelType" /> |
|---|
| 116 | <xsd:element name="message" type="xsd:string"> |
|---|
| 117 | </xsd:element> |
|---|
| 118 | <xsd:element name="method" type="xsd:string"> |
|---|
| 119 | </xsd:element> |
|---|
| 120 | <xsd:element name="note" type="xsd:string"/> |
|---|
| 121 | <xsd:element name="postcondition" type="xsd:string" /> |
|---|
| 122 | <xsd:element name="priority" type="tc:PriorityType" /> |
|---|
| 123 | <xsd:element name="revision" type="xsd:string" /> |
|---|
| 124 | <xsd:element name="scrno" type="tc:scrnoType" /> |
|---|
| 125 | <xsd:element name="shortname" type="xsd:string" /> |
|---|
| 126 | <xsd:element name="traceability" type="tc:useCaseStepId" /> |
|---|
| 127 | <xsd:element name="step"> |
|---|
| 128 | <xsd:complexType> |
|---|
| 129 | <xsd:sequence> |
|---|
| 130 | <xsd:element ref="tc:id"/> |
|---|
| 131 | <xsd:element ref="tc:action" /> |
|---|
| 132 | <xsd:element ref="tc:input" /> |
|---|
| 133 | <xsd:element ref="tc:expected" /> |
|---|
| 134 | <xsd:element ref="tc:traceability" maxOccurs="unbounded" minOccurs="0"/> |
|---|
| 135 | </xsd:sequence> |
|---|
| 136 | </xsd:complexType> |
|---|
| 137 | </xsd:element> |
|---|
| 138 | <xsd:element name="steps"> |
|---|
| 139 | <xsd:complexType> |
|---|
| 140 | <xsd:sequence> |
|---|
| 141 | <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tc:step" /> |
|---|
| 142 | </xsd:sequence> |
|---|
| 143 | </xsd:complexType> |
|---|
| 144 | </xsd:element> |
|---|
| 145 | <xsd:element name="team" type="xsd:string" /> |
|---|
| 146 | <xsd:element name="test"> |
|---|
| 147 | <xsd:complexType> |
|---|
| 148 | <xsd:sequence> |
|---|
| 149 | <xsd:element ref="tc:id"/> |
|---|
| 150 | <xsd:element ref="tc:shortname" /> |
|---|
| 151 | <xsd:element ref="tc:state" /> |
|---|
| 152 | <xsd:element ref="tc:team" /> |
|---|
| 153 | <xsd:element ref="tc:type" /> |
|---|
| 154 | <xsd:element ref="tc:areatopic" /> |
|---|
| 155 | <xsd:element ref="tc:level" /> |
|---|
| 156 | <xsd:element ref="tc:variety" /> |
|---|
| 157 | <xsd:element ref="tc:scrno" minOccurs="0" maxOccurs="unbounded"/> |
|---|
| 158 | <xsd:element ref="tc:docbase" /> |
|---|
| 159 | <xsd:element ref="tc:priority" /> |
|---|
| 160 | <xsd:element ref="tc:depends" /> |
|---|
| 161 | <xsd:element ref="tc:equiclass" /> |
|---|
| 162 | <xsd:element ref="tc:note" /> |
|---|
| 163 | <xsd:element ref="tc:method" /> |
|---|
| 164 | <xsd:element ref="tc:message" /> |
|---|
| 165 | <xsd:element ref="tc:execution" /> |
|---|
| 166 | <xsd:element ref="tc:evaluation" /> |
|---|
| 167 | <xsd:element ref="tc:cut" /> |
|---|
| 168 | <xsd:element ref="tc:description" /> |
|---|
| 169 | <xsd:element ref="tc:precondition" /> |
|---|
| 170 | <xsd:element ref="tc:inputvalues" /> |
|---|
| 171 | <xsd:element ref="tc:steps" /> |
|---|
| 172 | <xsd:element ref="tc:postcondition" /> |
|---|
| 173 | <xsd:element ref="tc:revision" /> |
|---|
| 174 | <xsd:element ref="tc:traceability" /> |
|---|
| 175 | </xsd:sequence> |
|---|
| 176 | </xsd:complexType> |
|---|
| 177 | </xsd:element> |
|---|
| 178 | <xsd:element name="type" type="tc:TestType" /> |
|---|
| 179 | <xsd:element name="variety" type="tc:VarietyType" /> |
|---|
| 180 | </xsd:schema> |
|---|