get element for case
[qa-tools:vesses-xslt.git] / src / data / testdefinition-tm_terms.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4
5   This file is part of test-definition
6  
7   Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
8
9   Contact: Riku Halonen <riku.halonen@nokia.com>
10
11   This package is free software; you can redistribute it and/or
12   modify it under the terms of the GNU Lesser General Public License
13   version 2.1 as published by the Free Software Foundation.
14  
15   This package is distributed in the hope that it will be useful, but
16   WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18   Lesser General Public License for more details.
19  
20   You should have received a copy of the GNU Lesser General Public
21   License along with this library; if not, write to the Free Software
22   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23   02110-1301 USA
24  
25 -->
26
27 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
28
29 <xs:attributeGroup name="general_attributes">
30   <xs:attribute name="name" use="required">
31     <xs:simpleType>
32       <xs:restriction base="xs:anyURI"/>
33     </xs:simpleType>
34   </xs:attribute>
35   <xs:attribute name="description"/>
36   <xs:attribute name="requirement"/>
37   <xs:attribute name="timeout" default="90" type="xs:positiveInteger"/>
38   <xs:attribute name="type" default="unknown">
39     <xs:simpleType>
40       <xs:restriction base="xs:token">
41         <xs:enumeration value="unknown"/>
42         <xs:enumeration value="Functional" />
43         <xs:enumeration value="Certification" />
44         <xs:enumeration value="Internationalisation" />
45         <xs:enumeration value="Localisation" />
46         <xs:enumeration value="Integration" />
47         <xs:enumeration value="System integration" />
48         <xs:enumeration value="Variant integration" />
49         <xs:enumeration value="3rd party integration" />
50         <xs:enumeration value="Services integration" />
51         <xs:enumeration value="Security" />
52         <xs:enumeration value="Performance" />
53         <xs:enumeration value="Latency" />
54         <xs:enumeration value="Response time" />
55         <xs:enumeration value="Frame rate" />
56         <xs:enumeration value="Benchmark" />
57         <xs:enumeration value="Resource utilisation" />
58         <xs:enumeration value="Memory consumption" />
59         <xs:enumeration value="Throughput" />
60         <xs:enumeration value="Load" />
61         <xs:enumeration value="Power management" />
62         <xs:enumeration value="Robustness" />
63         <xs:enumeration value="Low resource" />
64         <xs:enumeration value="Recovery" />
65         <xs:enumeration value="Iterative" />
66         <xs:enumeration value="Long lasting" />
67         <xs:enumeration value="Feature interaction" />
68         <xs:enumeration value="Long period" />
69         <xs:enumeration value="Usability" />
70         <xs:enumeration value="User experience" />
71         <xs:enumeration value="On-site" />
72       </xs:restriction>
73     </xs:simpleType>
74   </xs:attribute>
75   <xs:attribute name="level" default="unknown">
76     <xs:simpleType>
77       <xs:restriction base="xs:NMTOKEN">
78         <xs:enumeration value="unknown"/>
79         <xs:enumeration value="Component"/>
80         <xs:enumeration value="Feature"/>
81         <xs:enumeration value="System"/>
82         <xs:enumeration value="Product"/>
83       </xs:restriction>
84     </xs:simpleType>
85   </xs:attribute>
86   <xs:attribute name="domain"/>
87   <xs:attribute name="feature"/>
88   <xs:attribute name="component" type="xs:string" />
89   <xs:attribute name="manual" default="false" type="xs:boolean" />
90   <xs:attribute name="insignificant" default="false" type="xs:boolean" />
91   <xs:attribute name="hwid" type="xs:string" />
92 </xs:attributeGroup>
93
94 <xs:element name="testdefinition">
95   <xs:complexType>
96     <xs:sequence>
97       <xs:element ref="hwiddetect" minOccurs="0" maxOccurs="1" />
98       <xs:element name="description" minOccurs="0" maxOccurs="1" />
99       <xs:element ref="suite" minOccurs="1" maxOccurs="unbounded" />
100     </xs:sequence>
101     <xs:attribute name="version" use="required" type="xs:string" />
102   </xs:complexType>
103   <xs:unique name="uniqueSuiteName">
104     <xs:selector xpath=".//suite"/>
105     <xs:field xpath="@name"/>
106   </xs:unique>
107 </xs:element>
108
109 <xs:element name="suite">
110   <xs:complexType>
111     <xs:sequence>
112       <xs:element name="description" minOccurs="0" maxOccurs="1" />
113       <xs:element ref="set" minOccurs="0" maxOccurs="unbounded" />
114     </xs:sequence>
115     <xs:attributeGroup ref="general_attributes"/>
116   </xs:complexType>
117   <xs:unique name="uniqueSetName">
118     <xs:selector xpath=".//set"/>
119     <xs:field xpath="@name"/>
120   </xs:unique>
121
122 </xs:element>
123
124 <xs:element name="set">
125   <xs:complexType>
126     <xs:sequence minOccurs="0" maxOccurs="unbounded">
127       <xs:choice>
128         <xs:element name="description" minOccurs="0" maxOccurs="1" />
129         <xs:element name="pre_steps" minOccurs="0" maxOccurs="1">
130           <xs:complexType>
131             <xs:sequence>
132               <xs:element ref="step" maxOccurs="unbounded" />
133             </xs:sequence>
134             <xs:attribute name="timeout" type="xs:positiveInteger"/>
135           </xs:complexType>
136         </xs:element>
137       <xs:element name="post_steps" minOccurs="0" maxOccurs="1">
138         <xs:complexType>
139           <xs:sequence>
140             <xs:element ref="step" maxOccurs="unbounded" />
141           </xs:sequence>
142           <xs:attribute name="timeout" type="xs:positiveInteger"/>
143         </xs:complexType>
144       </xs:element>
145       <xs:element name="case" minOccurs="0" maxOccurs="unbounded">
146         <xs:complexType>
147           <xs:sequence>
148             <xs:element name="description" minOccurs="0" maxOccurs="1" />
149             <xs:element ref="step" minOccurs="0" maxOccurs="unbounded" />
150             <xs:element ref="get" minOccurs="0" maxOccurs="1"/>
151           </xs:sequence>
152           <xs:attributeGroup ref="general_attributes"/>
153           <xs:attribute name="subfeature"/>
154           <xs:attribute name="bugzilla_id" type="xs:positiveInteger"/>
155           <xs:attribute name="TC_ID"/>
156           <xs:attribute name="state">
157             <xs:simpleType>
158               <xs:restriction base="xs:token">
159                 <xs:enumeration value="Design" />
160                 <xs:enumeration value="Ready" />
161                 <xs:enumeration value="Approved" />
162               </xs:restriction>
163             </xs:simpleType>
164           </xs:attribute>
165         </xs:complexType>
166       </xs:element>
167       <xs:element name="environments" minOccurs="0" maxOccurs="1" />
168       <xs:element ref="get" minOccurs="0" maxOccurs="1"/>
169       </xs:choice>
170     </xs:sequence>
171     <xs:attributeGroup ref="general_attributes"/>
172   </xs:complexType>
173     <xs:unique name="uniqueCaseName">
174       <xs:selector xpath=".//case"/>
175       <xs:field xpath="@name"/>
176     </xs:unique>
177
178 </xs:element>
179
180
181 <xs:element name="get">
182   <xs:complexType>
183     <xs:sequence>
184       <xs:element name="file" minOccurs="1" maxOccurs="unbounded">
185         <xs:complexType>
186           <xs:simpleContent>
187             <xs:extension base="xs:string">
188               <xs:attribute name="delete_after" type="xs:boolean" default="false" />
189               <xs:attribute name="measurement" type="xs:boolean" default="false" />
190             </xs:extension>
191           </xs:simpleContent>
192         </xs:complexType>
193       </xs:element>
194     </xs:sequence>
195   </xs:complexType>
196 </xs:element>
197
198 <xs:element name="step">
199   <xs:complexType>
200     <xs:simpleContent>
201       <xs:extension base="xs:string">
202         <xs:attribute name="expected_result" type="xs:unsignedShort" default="0" />
203         <xs:attribute name="manual" default="false" type="xs:boolean" />
204       </xs:extension>
205     </xs:simpleContent>
206   </xs:complexType>
207 </xs:element>
208
209 <xs:element name="hwiddetect">
210   <xs:complexType>
211     <xs:simpleContent>
212       <xs:extension base="xs:string" />
213     </xs:simpleContent>
214   </xs:complexType>
215 </xs:element>
216
217 <xs:group name="manual_step">
218   <xs:sequence>
219     <xs:element name="action" />
220     <xs:element name="expected_result" />
221   </xs:sequence>
222 </xs:group>
223
224 </xs:schema>
225
226 <!--
227     vim:ts=2:sw=2:et
228   -->