File tree Expand file tree Collapse file tree 6 files changed +48
-6
lines changed
dev/tests/functional/tests/MFTF/DevDocs
src/Magento/FunctionalTestingFramework/DataGenerator/etc Expand file tree Collapse file tree 6 files changed +48
-6
lines changed Original file line number Diff line number Diff line change 11
11
<entity name =" DeprecatedMessageData" deprecated =" Entity is deprecated. Please use 'MessageData'." >
12
12
<data key =" message" >Introduction to the Magento Functional Testing Framework</data >
13
13
</entity >
14
+ <entity name =" MessageData" >
15
+ <data key =" justSomeField" >Some data</data >
16
+ </entity >
14
17
</entities >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../../src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" MessageData" >
12
+ <array key =" numbers" >
13
+ <item >Something New</item >
14
+ </array >
15
+ </entity >
16
+ </entities >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
11
<entity name =" MessageData" >
12
12
<data key =" message" >Introduction to the Magento Functional Testing Framework</data >
13
+ <array key =" numbers" >
14
+ <item name =" zero" >0</item >
15
+ <item name =" one" >1</item >
16
+ <item name =" two" >2</item >
17
+ <item name =" three" >3</item >
18
+ </array >
13
19
</entity >
14
20
</entities >
Original file line number Diff line number Diff line change 46
46
<argument name =" test" value =" {{HelperData.entityField}}" />
47
47
<argument name =" entityTest" value =" HelperData" />
48
48
</actionGroup >
49
+ <comment userInput =" {{MessageData.numbers}}" stepKey =" outputMergedArray" />
49
50
</test >
50
51
</tests >
Original file line number Diff line number Diff line change 157
157
<argument name =" idAttributes" xsi : type =" array" >
158
158
<item name =" /entities/entity" xsi : type =" string" >name</item >
159
159
<item name =" /entities/entity/(data|array)" xsi : type =" string" >key</item >
160
+ <item name =" /entities/entity/array/item" xsi : type =" string" >name</item >
160
161
<item name =" /entities/entity/requiredEntity" xsi : type =" string" >type</item >
161
162
</argument >
162
163
<argument name =" mergeablePaths" xsi : type =" array" >
Original file line number Diff line number Diff line change 118
118
119
119
<xs : complexType name =" arrayType" >
120
120
<xs : sequence >
121
- <xs : element name =" item" type =" xs:string " maxOccurs =" unbounded" minOccurs =" 0" >
122
- <xs : annotation >
123
- <xs : documentation >
124
- Individual piece of data to be passed in as part of the parrent array type.
125
- </xs : documentation >
126
- </xs : annotation >
121
+ <xs : element name =" item" type =" itemType " maxOccurs =" unbounded" minOccurs =" 0" >
122
+ <xs : annotation >
123
+ <xs : documentation >
124
+ Individual piece of data to be passed in as part of the parrent array type.
125
+ </xs : documentation >
126
+ </xs : annotation >
127
127
</xs : element >
128
128
</xs : sequence >
129
129
<xs : attribute type =" xs:string" name =" key" use =" required" />
130
130
</xs : complexType >
131
131
132
+
133
+ <xs : complexType name =" itemType" >
134
+ <xs : simpleContent >
135
+ <xs : extension base =" xs:string" >
136
+ <xs : attribute type =" xs:string" name =" name" use =" optional" >
137
+ <xs : annotation >
138
+ <xs : documentation >
139
+ Key attribute of item pair.
140
+ </xs : documentation >
141
+ </xs : annotation >
142
+ </xs : attribute >
143
+ </xs : extension >
144
+ </xs : simpleContent >
145
+ </xs : complexType >
146
+
132
147
<xs : complexType name =" requiredEntityType" >
133
148
<xs : simpleContent >
134
149
<xs : extension base =" xs:string" >
You can’t perform that action at this time.
0 commit comments