Skip to content

Commit 96df99c

Browse files
committed
MQE-682: Copy documentation from devdocs to XSDs
- Reorganizing step, broke out actions from testSchema to sub-groups where possible.
1 parent 5aad75c commit 96df99c

File tree

11 files changed

+1962
-1846
lines changed

11 files changed

+1962
-1846
lines changed

src/Magento/FunctionalTestingFramework/Test/etc/Actions/assertActions.xsd

Lines changed: 561 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2+
3+
<xs:group name="clickTags">
4+
<xs:choice>
5+
<xs:element type="clickType" name="click" minOccurs="0" maxOccurs="unbounded"/>
6+
<xs:element type="clickWithLeftButtonType" name="clickWithLeftButton" minOccurs="0" maxOccurs="unbounded"/>
7+
<xs:element type="clickWithRightButtonType" name="clickWithRightButton" minOccurs="0"
8+
maxOccurs="unbounded"/>
9+
<xs:element type="doubleClickType" name="doubleClick" minOccurs="0" maxOccurs="unbounded"/>
10+
<xs:element type="conditionalClickType" name="conditionalClick" minOccurs="0" maxOccurs="unbounded"/>
11+
</xs:choice>
12+
</xs:group>
13+
14+
<!-- Complex Types -->
15+
16+
<xs:complexType name="clickType">
17+
<xs:simpleContent>
18+
<xs:extension base="xs:string">
19+
<xs:attribute type="xs:string" name="selector"/>
20+
<xs:attribute type="xs:string" name="selectorArray"/>
21+
<xs:attribute type="xs:string" name="userInput"/>
22+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
23+
<xs:attribute type="xs:string" name="before"/>
24+
<xs:attribute type="xs:string" name="after"/>
25+
</xs:extension>
26+
</xs:simpleContent>
27+
</xs:complexType>
28+
<xs:complexType name="clickWithLeftButtonType">
29+
<xs:simpleContent>
30+
<xs:extension base="xs:string">
31+
<xs:attribute type="xs:string" name="selector"/>
32+
<xs:attribute type="xs:string" name="selectorArray"/>
33+
<xs:attribute type="xs:string" name="x"/>
34+
<xs:attribute type="xs:string" name="y"/>
35+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
36+
<xs:attribute type="xs:string" name="before"/>
37+
<xs:attribute type="xs:string" name="after"/>
38+
</xs:extension>
39+
</xs:simpleContent>
40+
</xs:complexType>
41+
<xs:complexType name="clickWithRightButtonType">
42+
<xs:simpleContent>
43+
<xs:extension base="xs:string">
44+
<xs:attribute type="xs:string" name="selector"/>
45+
<xs:attribute type="xs:string" name="selectorArray"/>
46+
<xs:attribute type="xs:string" name="x"/>
47+
<xs:attribute type="xs:string" name="y"/>
48+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
49+
<xs:attribute type="xs:string" name="before"/>
50+
<xs:attribute type="xs:string" name="after"/>
51+
</xs:extension>
52+
</xs:simpleContent>
53+
</xs:complexType>
54+
<xs:complexType name="conditionalClickType">
55+
<xs:simpleContent>
56+
<xs:extension base="xs:string">
57+
<xs:attribute type="xs:string" name="selector" use="required"/>
58+
<xs:attribute type="xs:string" name="dependentSelector" use="required"/>
59+
<xs:attribute type="xs:boolean" name="visible" use="required"/>
60+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
61+
<xs:attribute type="xs:string" name="before"/>
62+
<xs:attribute type="xs:string" name="after"/>
63+
</xs:extension>
64+
</xs:simpleContent>
65+
</xs:complexType>
66+
<xs:complexType name="doubleClickType">
67+
<xs:simpleContent>
68+
<xs:extension base="xs:string">
69+
<xs:attribute type="xs:string" name="selector" use="required"/>
70+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
71+
<xs:attribute type="xs:string" name="before"/>
72+
<xs:attribute type="xs:string" name="after"/>
73+
</xs:extension>
74+
</xs:simpleContent>
75+
</xs:complexType>
76+
</xs:schema>
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2+
3+
<xs:group name="customTags">
4+
<xs:choice>
5+
<xs:element type="magentoCLIType" name="magentoCLI" minOccurs="0" maxOccurs="unbounded"/>
6+
<xs:element type="closeAdminNotificationType" name="closeAdminNotification" minOccurs="0" maxOccurs="unbounded"/>
7+
<xs:element type="searchAndMultiSelectOptionType" name="searchAndMultiSelectOption" minOccurs="0"
8+
maxOccurs="unbounded"/>
9+
<xs:element type="formatMoneyType" name="formatMoney" minOccurs="0" maxOccurs="unbounded"/>
10+
<xs:element type="parseFloatType" name="parseFloat" minOccurs="0" maxOccurs="unbounded"/>
11+
<xs:element type="mSetLocaleType" name="mSetLocale" minOccurs="0" maxOccurs="unbounded"/>
12+
<xs:element type="mResetLocaleType" name="mResetLocale" minOccurs="0" maxOccurs="unbounded"/>
13+
<xs:element type="scrollToTopOfPageType" name="scrollToTopOfPage" minOccurs="0" maxOccurs="unbounded"/>
14+
<xs:element type="clearFieldType" name="clearField" minOccurs="0" maxOccurs="unbounded"/>
15+
</xs:choice>
16+
</xs:group>
17+
18+
19+
20+
<!-- Complex Types -->
21+
22+
<xs:complexType name="magentoCLIType">
23+
<xs:simpleContent>
24+
<xs:extension base="xs:string">
25+
<xs:attribute type="xs:string" name="command"/>
26+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
27+
<xs:attribute type="xs:string" name="before"/>
28+
<xs:attribute type="xs:string" name="after"/>
29+
</xs:extension>
30+
</xs:simpleContent>
31+
</xs:complexType>
32+
<xs:complexType name="closeAdminNotificationType">
33+
<xs:simpleContent>
34+
<xs:extension base="xs:string">
35+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
36+
<xs:attribute type="xs:string" name="before"/>
37+
<xs:attribute type="xs:string" name="after"/>
38+
</xs:extension>
39+
</xs:simpleContent>
40+
</xs:complexType>
41+
<xs:complexType name="searchAndMultiSelectOptionType">
42+
<xs:simpleContent>
43+
<xs:extension base="xs:string">
44+
<xs:attribute type="xs:string" name="selector" use="required"/>
45+
<xs:attribute type="xs:string" name="parameterArray" use="required"/>
46+
<xs:attribute type="xs:string" name="requiredAction"/>
47+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
48+
<xs:attribute type="xs:string" name="before"/>
49+
<xs:attribute type="xs:string" name="after"/>
50+
</xs:extension>
51+
</xs:simpleContent>
52+
</xs:complexType>
53+
<xs:complexType name="formatMoneyType">
54+
<xs:simpleContent>
55+
<xs:extension base="xs:string">
56+
<xs:attribute type="xs:string" name="userInput"/>
57+
<xs:attribute type="xs:string" name="locale"/>
58+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
59+
<xs:attribute type="xs:string" name="before"/>
60+
<xs:attribute type="xs:string" name="after"/>
61+
</xs:extension>
62+
</xs:simpleContent>
63+
</xs:complexType>
64+
<xs:complexType name="parseFloatType">
65+
<xs:simpleContent>
66+
<xs:extension base="xs:string">
67+
<xs:attribute type="xs:string" name="userInput"/>
68+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
69+
<xs:attribute type="xs:string" name="before"/>
70+
<xs:attribute type="xs:string" name="after"/>
71+
</xs:extension>
72+
</xs:simpleContent>
73+
</xs:complexType>
74+
<xs:complexType name="mSetLocaleType">
75+
<xs:simpleContent>
76+
<xs:extension base="xs:string">
77+
<xs:attribute type="xs:string" name="userInput"/>
78+
<xs:attribute type="xs:string" name="locale" use="required"/>
79+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
80+
<xs:attribute type="xs:string" name="before"/>
81+
<xs:attribute type="xs:string" name="after"/>
82+
</xs:extension>
83+
</xs:simpleContent>
84+
</xs:complexType>
85+
<xs:complexType name="mResetLocaleType">
86+
<xs:simpleContent>
87+
<xs:extension base="xs:string">
88+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
89+
<xs:attribute type="xs:string" name="before"/>
90+
<xs:attribute type="xs:string" name="after"/>
91+
</xs:extension>
92+
</xs:simpleContent>
93+
</xs:complexType>
94+
<xs:complexType name="scrollToTopOfPageType">
95+
<xs:simpleContent>
96+
<xs:extension base="xs:string">
97+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
98+
<xs:attribute type="xs:string" name="before"/>
99+
<xs:attribute type="xs:string" name="after"/>
100+
</xs:extension>
101+
</xs:simpleContent>
102+
</xs:complexType>
103+
<xs:complexType name="clearFieldType">
104+
<xs:simpleContent>
105+
<xs:extension base="xs:string">
106+
<xs:attribute type="xs:string" name="selector" use="required"/>
107+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
108+
<xs:attribute type="xs:string" name="before"/>
109+
<xs:attribute type="xs:string" name="after"/>
110+
</xs:extension>
111+
</xs:simpleContent>
112+
</xs:complexType>
113+
114+
</xs:schema>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2+
3+
<xs:group name="dataOperationTags">
4+
<xs:choice>
5+
<xs:element type="createDataType" name="createData" minOccurs="0" maxOccurs="unbounded"/>
6+
<xs:element type="deleteDataType" name="deleteData" minOccurs="0" maxOccurs="unbounded"/>
7+
<xs:element type="updateDataType" name="deleteData" minOccurs="0" maxOccurs="unbounded"/>
8+
<xs:element type="getDataType" name="getData" minOccurs="0" maxOccurs="unbounded"/>
9+
</xs:choice>
10+
</xs:group>
11+
12+
<!-- Complex Types -->
13+
14+
<xs:complexType name="createDataType">
15+
<xs:choice minOccurs="0" maxOccurs="unbounded">
16+
<xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
17+
</xs:choice>
18+
<xs:attribute type="xs:string" name="entity" use="required"/>
19+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
20+
<xs:attribute type="xs:string" name="before"/>
21+
<xs:attribute type="xs:string" name="after"/>
22+
<xs:attribute type="xs:string" name="storeCode"/>
23+
</xs:complexType>
24+
<xs:complexType name="updateDataType">
25+
<xs:choice minOccurs="0" maxOccurs="unbounded">
26+
<xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
27+
</xs:choice>
28+
<xs:attribute type="xs:string" name="entity" use="required"/>
29+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
30+
<xs:attribute type="xs:string" name="createDataKey" use="required"/>
31+
<xs:attribute type="xs:string" name="before"/>
32+
<xs:attribute type="xs:string" name="after"/>
33+
<xs:attribute type="xs:string" name="storeCode"/>
34+
</xs:complexType>
35+
<xs:complexType name="deleteDataType">
36+
<xs:simpleContent>
37+
<xs:extension base="xs:string">
38+
<xs:attribute type="xs:string" name="createDataKey" use="required"/>
39+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
40+
<xs:attribute type="xs:string" name="before"/>
41+
<xs:attribute type="xs:string" name="after"/>
42+
<xs:attribute type="xs:string" name="storeCode"/>
43+
</xs:extension>
44+
</xs:simpleContent>
45+
</xs:complexType>
46+
<xs:complexType name="getDataType">
47+
<xs:choice minOccurs="0" maxOccurs="unbounded">
48+
<xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
49+
</xs:choice>
50+
<xs:attribute type="xs:string" name="entity" use="required"/>
51+
<xs:attribute type="xs:string" name="stepKey" use="required"/>
52+
<xs:attribute type="xs:integer" name="index"/>
53+
<xs:attribute type="xs:string" name="before"/>
54+
<xs:attribute type="xs:string" name="after"/>
55+
<xs:attribute type="xs:string" name="storeCode"/>
56+
</xs:complexType>
57+
<xs:complexType name="requiredEntityType">
58+
<xs:simpleContent>
59+
<xs:extension base="xs:string">
60+
<xs:attribute type="xs:string" name="createDataKey" use="required"/>
61+
<xs:attribute type="xs:string" name="before"/>
62+
<xs:attribute type="xs:string" name="after"/>
63+
</xs:extension>
64+
</xs:simpleContent>
65+
</xs:complexType>
66+
</xs:schema>

0 commit comments

Comments
 (0)