Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit deee9cd

Browse files
committed
增加测试套件的定义
1 parent f721a18 commit deee9cd

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

src/main/resources/autotest.web.framework.suite.xsd

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,47 @@
66
<xs:element name="suite">
77
<xs:complexType>
88
<xs:sequence>
9+
<xs:element name="params" minOccurs="0" maxOccurs="1">
10+
<xs:annotation>
11+
<xs:documentation>
12+
<![CDATA[参数集合。]]>
13+
</xs:documentation>
14+
</xs:annotation>
15+
<xs:complexType>
16+
<xs:sequence>
17+
<xs:element name="param" maxOccurs="unbounded">
18+
<xs:annotation>
19+
<xs:documentation>
20+
<![CDATA[参数键值对。]]>
21+
</xs:documentation>
22+
</xs:annotation>
23+
<xs:complexType>
24+
<xs:attribute name="category" type="xs:string" use="required">
25+
<xs:annotation>
26+
<xs:documentation>
27+
<![CDATA[参数分类。]]>
28+
</xs:documentation>
29+
</xs:annotation>
30+
</xs:attribute>
31+
<xs:attribute name="key" type="xs:string" use="required">
32+
<xs:annotation>
33+
<xs:documentation>
34+
<![CDATA[参数键。]]>
35+
</xs:documentation>
36+
</xs:annotation>
37+
</xs:attribute>
38+
<xs:attribute name="value" type="xs:string" use="required">
39+
<xs:annotation>
40+
<xs:documentation>
41+
<![CDATA[参数值。]]>
42+
</xs:documentation>
43+
</xs:annotation>
44+
</xs:attribute>
45+
</xs:complexType>
46+
</xs:element>
47+
</xs:sequence>
48+
</xs:complexType>
49+
</xs:element>
950
<xs:element name="page" type="suren:suitePageType" maxOccurs="unbounded">
1051
<xs:annotation>
1152
<xs:documentation>
@@ -21,6 +62,13 @@
2162
</xs:documentation>
2263
</xs:annotation>
2364
</xs:attribute>
65+
<xs:attribute name="parentConfigs" type="xs:string">
66+
<xs:annotation>
67+
<xs:documentation>
68+
<![CDATA[公用的测试套件,逗号分割。]]>
69+
</xs:documentation>
70+
</xs:annotation>
71+
</xs:attribute>
2472
<xs:attribute name="pagePackage" type="xs:string">
2573
<xs:annotation>
2674
<xs:documentation>
@@ -61,27 +109,34 @@
61109

62110
<xs:complexType name="suitePageType">
63111
<xs:sequence>
64-
<xs:element name="actions" type="suren:actionsType">
112+
<xs:element name="actions" type="suren:actionsType" minOccurs="0" maxOccurs="unbounded">
65113
<xs:annotation>
66114
<xs:documentation>
67115
<![CDATA[操作列表]]>
68116
</xs:documentation>
69117
</xs:annotation>
70118
</xs:element>
71119
</xs:sequence>
72-
<xs:attribute name="class" type="xs:string">
120+
<xs:attribute name="class" type="xs:string" use="required">
73121
<xs:annotation>
74122
<xs:documentation>
75123
<![CDATA[Page类对应的全路径,必填。]]>
76124
</xs:documentation>
77125
</xs:annotation>
78126
</xs:attribute>
127+
<xs:attribute name="abstracts" type="xs:boolean" default="false">
128+
<xs:annotation>
129+
<xs:documentation>
130+
<![CDATA[是否为抽象的,默认为false,如果为true时则直接继承。]]>
131+
</xs:documentation>
132+
</xs:annotation>
133+
</xs:attribute>
79134
</xs:complexType>
80135

81136
<xs:complexType name="actionsType">
82137
<xs:annotation>
83138
<xs:documentation>
84-
<![CDATA[操作集合,必填。]]>
139+
<![CDATA[如果abstracts为true,则操作集合,必填。]]>
85140
</xs:documentation>
86141
</xs:annotation>
87142
<xs:sequence>

0 commit comments

Comments
 (0)