Skip to content

Commit 5048832

Browse files
author
bshevchenko
committed
MAGETWO-94838: Automate with MFTF Ability to configure Advanced Prices from Shared Catalog Page for different type of products
1 parent 0456a9f commit 5048832

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiBundleProductActionGroup.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminCreateApiDynamicBundleProductActionGroup">
12+
<arguments>
13+
<argument name="productName" defaultValue="Api Dynamic Bundle Product" type="string"/>
14+
</arguments>
1215
<!--Create 4 simple products-->
1316
<createData entity="SimpleProduct2" stepKey="simpleProduct1">
1417
<field key="price">4.99</field>
@@ -23,7 +26,9 @@
2326
<field key="price">18.25</field>
2427
</createData>
2528
<!-- Create the bundle product based -->
26-
<createData entity="ApiBundleProduct" stepKey="createBundleProduct"/>
29+
<createData entity="ApiBundleProduct" stepKey="createBundleProduct">
30+
<field key="name">{{productName}}</field>
31+
</createData>
2732
<createData entity="MultipleSelectOption" stepKey="createBundleOption1_1">
2833
<requiredEntity createDataKey="createBundleProduct"/>
2934
<field key="required">false</field>
@@ -53,6 +58,9 @@
5358
</createData>
5459
</actionGroup>
5560
<actionGroup name="AdminCreateApiFixedBundleProductActionGroup">
61+
<arguments>
62+
<argument name="productName" defaultValue="Api Fixed Bundle Product" type="string"/>
63+
</arguments>
5664
<!--Create 4 simple products-->
5765
<createData entity="SimpleProduct2" stepKey="simpleProduct1">
5866
<field key="price">4.99</field>
@@ -67,7 +75,9 @@
6775
<field key="price">18.25</field>
6876
</createData>
6977
<!-- Create the bundle product based -->
70-
<createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct"/>
78+
<createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct">
79+
<field key="name">{{productName}}</field>
80+
</createData>
7181
<createData entity="MultipleSelectOption" stepKey="createBundleOption1_1">
7282
<requiredEntity createDataKey="createBundleProduct"/>
7383
<field key="required">false</field>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AdminCreateApiConfigurableProductActionGroup.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminCreateApiConfigurableProductActionGroup">
12+
<arguments>
13+
<argument name="productName" defaultValue="ApiConfigurableProductWithOutCategory" type="string"/>
14+
</arguments>
15+
1216
<!-- Create the configurable product based on the data in the /data folder -->
13-
<createData entity="ApiConfigurableProductWithOutCategory" stepKey="createConfigProduct"/>
17+
<createData entity="ApiConfigurableProductWithOutCategory" stepKey="createConfigProduct">
18+
<field key="name">{{productName}}</field>
19+
</createData>
1420

1521
<!-- Create attribute with 2 options to be used in children products -->
1622
<createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>

0 commit comments

Comments
 (0)