forked from magento/magento2-functional-testing-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestSchema.xsd
80 lines (73 loc) · 3.33 KB
/
testSchema.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="actionTypeTags.xsd"/>
<!-- Container types -->
<xs:element name="tests" type="configType"/>
<xs:complexType name="configType">
<xs:sequence>
<xs:choice>
<xs:element type="testType" name="test" maxOccurs="unbounded"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="annotationsType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element type="annotationType" name="features" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="stories" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="title" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="description" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="severity" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="testCaseId" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="useCaseId" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="group" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="annotationType" name="return" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="annotationType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="value" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="hookType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="testTypeTags"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="testType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="testTypeTags"/>
<xs:element type="hookType" name="before" minOccurs="0"/>
<xs:element type="hookType" name="after" minOccurs="0"/>
<xs:element type="annotationsType" name="annotations" minOccurs="0"/>
</xs:choice>
<xs:attribute type="xs:string" name="name"/>
<xs:attribute type="xs:boolean" name="remove" default="false"/>
</xs:complexType>
<xs:group name="testTypeTags">
<xs:choice>
<xs:group ref="actionTypeTags"/>
<xs:element type="actions" name="actionGroup" minOccurs="0"/>
</xs:choice>
</xs:group>
<!-- Action Group ref -->
<xs:complexType name="actions">
<xs:sequence maxOccurs="unbounded" minOccurs="0">
<xs:element name="argument">
<xs:complexType>
<xs:attribute type="xs:string" name="name"/>
<xs:attribute type="xs:string" name="value"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="ref" use="required"/>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:complexType>
</xs:schema>