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 1111 <entity name =" DeprecatedMessageData" deprecated =" Entity is deprecated. Please use 'MessageData'." >
1212 <data key =" message" >Introduction to the Magento Functional Testing Framework</data >
1313 </entity >
14+ <entity name =" MessageData" >
15+ <data key =" justSomeField" >Some data</data >
16+ </entity >
1417</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 1010 xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
1111 <entity name =" MessageData" >
1212 <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 >
1319 </entity >
1420</entities >
Original file line number Diff line number Diff line change 4646 <argument name =" test" value =" {{HelperData.entityField}}" />
4747 <argument name =" entityTest" value =" HelperData" />
4848 </actionGroup >
49+ <comment userInput =" {{MessageData.numbers}}" stepKey =" outputMergedArray" />
4950 </test >
5051</tests >
Original file line number Diff line number Diff line change 157157 <argument name =" idAttributes" xsi : type =" array" >
158158 <item name =" /entities/entity" xsi : type =" string" >name</item >
159159 <item name =" /entities/entity/(data|array)" xsi : type =" string" >key</item >
160+ <item name =" /entities/entity/array/item" xsi : type =" string" >name</item >
160161 <item name =" /entities/entity/requiredEntity" xsi : type =" string" >type</item >
161162 </argument >
162163 <argument name =" mergeablePaths" xsi : type =" array" >
Original file line number Diff line number Diff line change 118118
119119 <xs : complexType name =" arrayType" >
120120 <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 >
127127 </xs : element >
128128 </xs : sequence >
129129 <xs : attribute type =" xs:string" name =" key" use =" required" />
130130 </xs : complexType >
131131
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+
132147 <xs : complexType name =" requiredEntityType" >
133148 <xs : simpleContent >
134149 <xs : extension base =" xs:string" >
You can’t perform that action at this time.
0 commit comments