Skip to content

Commit c6134b0

Browse files
committed
MC-138: Guest customer should be able to advance search configurable product with product name
MC-144: Guest customer should be able to advance search configurable product with product sku MC-237: Guest customer should be able to advance search configurable product with product description MC-240: Guest customer should be able to advance search configurable product with product short description - added mftf tests
1 parent 89b4f53 commit c6134b0

8 files changed

+502
-199
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="AdvanceCatalogSearchSimpleProductByNameTest">
12+
<annotations>
13+
<group value="Catalog"/>
14+
</annotations>
15+
<before>
16+
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
17+
</before>
18+
<after>
19+
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
20+
</after>
21+
</test>
22+
</tests>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="AdvanceCatalogSearchVirtualProductByNameTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
12+
<annotations>
13+
<group value="Catalog"/>
14+
</annotations>
15+
<before>
16+
<createData entity="ApiVirtualProductWithDescription" stepKey="createProductOne"/>
17+
</before>
18+
</test>
19+
<test name="AdvanceCatalogSearchVirtualProductBySkuTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
20+
<annotations>
21+
<group value="Catalog"/>
22+
</annotations>
23+
<before>
24+
<createData entity="ApiVirtualProductWithDescription" stepKey="createProductOne"/>
25+
</before>
26+
</test>
27+
<test name="AdvanceCatalogSearchVirtualProductByDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
28+
<annotations>
29+
<group value="Catalog"/>
30+
</annotations>
31+
<before>
32+
<createData entity="ApiVirtualProductWithDescription" stepKey="createProductOne"/>
33+
</before>
34+
</test>
35+
<test name="AdvanceCatalogSearchVirtualProductByShortDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
36+
<annotations>
37+
<group value="Catalog"/>
38+
</annotations>
39+
<before>
40+
<createData entity="ApiVirtualProductWithDescription" stepKey="createProductOne"/>
41+
</before>
42+
</test>
43+
<test name="AdvanceCatalogSearchVirtualProductByPriceTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
44+
<annotations>
45+
<group value="Catalog"/>
46+
</annotations>
47+
<before>
48+
<createData entity="ApiVirtualProductWithDescription" stepKey="createProductOne"/>
49+
</before>
50+
</test>
51+
</tests>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="AdvanceCatalogSearchConfigurableByNameTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
12+
<annotations>
13+
<features value="CatalogSearch"/>
14+
<stories value="Advanced Catalog Product Search for all product types"/>
15+
<title value="Guest customer should be able to advance search configurable product with product name"/>
16+
<description value="Guest customer should be able to advance search configurable product with product name"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="MC-138"/>
19+
<group value="CatalogSearch"/>
20+
</annotations>
21+
</test>
22+
<test name="AdvanceCatalogSearchConfigurableBySkuTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
23+
<annotations>
24+
<features value="CatalogSearch"/>
25+
<stories value="Advanced Catalog Product Search for all product types"/>
26+
<title value="Guest customer should be able to advance search configurable product with product sku"/>
27+
<description value="Guest customer should be able to advance search configurable product with product sku"/>
28+
<severity value="MAJOR"/>
29+
<testCaseId value="MC-144"/>
30+
<group value="CatalogSearch"/>
31+
</annotations>
32+
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductSkuActionGroup" stepKey="search">
33+
<argument name="sku" value="$$createProductOne.sku$$"/>
34+
</actionGroup>
35+
</test>
36+
<test name="AdvanceCatalogSearchConfigurableByDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
37+
<annotations>
38+
<features value="CatalogSearch"/>
39+
<stories value="Advanced Catalog Product Search for all product types"/>
40+
<title value="Guest customer should be able to advance search configurable product with product description"/>
41+
<description value="Guest customer should be able to advance search configurable product with product description"/>
42+
<severity value="MAJOR"/>
43+
<testCaseId value="MC-237"/>
44+
<group value="CatalogSearch"/>
45+
</annotations>
46+
<actionGroup ref="StorefrontAdvancedCatalogSearchByDescriptionActionGroup" stepKey="search">
47+
<argument name="description" value="$$createProductOne.custom_attributes[description]$$"/>
48+
</actionGroup>
49+
</test>
50+
<test name="AdvanceCatalogSearchConfigurableByShortDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
51+
<annotations>
52+
<features value="CatalogSearch"/>
53+
<stories value="Advanced Catalog Product Search for all product types"/>
54+
<title value="Guest customer should be able to advance search configurable product with product short description"/>
55+
<description value="Guest customer should be able to advance search configurable product with product short description"/>
56+
<severity value="MAJOR"/>
57+
<testCaseId value="MC-240"/>
58+
<group value="CatalogSearch"/>
59+
</annotations>
60+
<actionGroup ref="StorefrontAdvancedCatalogSearchByShortDescriptionActionGroup" stepKey="search">
61+
<argument name="shortDescription" value="$$createProductOne.custom_attributes[short_description]$$"/>
62+
</actionGroup>
63+
</test>
64+
</tests>
Lines changed: 5 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,15 @@
1818
<testCaseId value="MC-132"/>
1919
<group value="CatalogSearch"/>
2020
</annotations>
21-
<before>
22-
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
23-
</before>
24-
<after>
25-
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
26-
</after>
27-
2821
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
2922
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameActionGroup" stepKey="search">
3023
<argument name="name" value="$$createProductOne.name$$"/>
3124
</actionGroup>
3225
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
3326
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
27+
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
3428
</test>
35-
<test name="AdvanceCatalogSearchSimpleProductBySkuTest">
29+
<test name="AdvanceCatalogSearchSimpleProductBySkuTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
3630
<annotations>
3731
<features value="CatalogSearch"/>
3832
<stories value="Advanced Catalog Product Search for all product types"/>
@@ -42,23 +36,11 @@
4236
<testCaseId value="MC-133"/>
4337
<group value="CatalogSearch"/>
4438
</annotations>
45-
<before>
46-
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
47-
</before>
48-
<after>
49-
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
50-
</after>
51-
52-
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
5339
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductSkuActionGroup" stepKey="search">
5440
<argument name="sku" value="$$createProductOne.sku$$"/>
5541
</actionGroup>
56-
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
57-
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
58-
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
5942
</test>
60-
61-
<test name="AdvanceCatalogSearchSimpleProductByDescriptionTest">
43+
<test name="AdvanceCatalogSearchSimpleProductByDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
6244
<annotations>
6345
<features value="CatalogSearch"/>
6446
<stories value="Advanced Catalog Product Search for all product types"/>
@@ -68,23 +50,11 @@
6850
<testCaseId value="MC-134"/>
6951
<group value="CatalogSearch"/>
7052
</annotations>
71-
<before>
72-
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
73-
</before>
74-
<after>
75-
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
76-
</after>
77-
78-
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
7953
<actionGroup ref="StorefrontAdvancedCatalogSearchByDescriptionActionGroup" stepKey="search">
8054
<argument name="description" value="$$createProductOne.custom_attributes[description]$$"/>
8155
</actionGroup>
82-
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
83-
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
84-
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
8556
</test>
86-
87-
<test name="AdvanceCatalogSearchSimpleProductByShortDescriptionTest">
57+
<test name="AdvanceCatalogSearchSimpleProductByShortDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
8858
<annotations>
8959
<features value="CatalogSearch"/>
9060
<stories value="Advanced Catalog Product Search for all product types"/>
@@ -94,23 +64,11 @@
9464
<testCaseId value="MC-135"/>
9565
<group value="CatalogSearch"/>
9666
</annotations>
97-
<before>
98-
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
99-
</before>
100-
<after>
101-
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
102-
</after>
103-
104-
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
10567
<actionGroup ref="StorefrontAdvancedCatalogSearchByShortDescriptionActionGroup" stepKey="search">
10668
<argument name="shortDescription" value="$$createProductOne.custom_attributes[short_description]$$"/>
10769
</actionGroup>
108-
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
109-
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
110-
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
11170
</test>
112-
113-
<test name="AdvanceCatalogSearchSimpleProductByPriceTest">
71+
<test name="AdvanceCatalogSearchSimpleProductByPriceTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
11472
<annotations>
11573
<features value="CatalogSearch"/>
11674
<stories value="Advanced Catalog Product Search for all product types"/>
@@ -120,21 +78,10 @@
12078
<testCaseId value="MC-136"/>
12179
<group value="CatalogSearch"/>
12280
</annotations>
123-
<before>
124-
<createData entity="ApiProductWithDescription" stepKey="createProductOne"/>
125-
</before>
126-
<after>
127-
<deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
128-
</after>
129-
130-
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
13181
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="search">
13282
<argument name="name" value="$$createProductOne.name$$"/>
13383
<argument name="priceFrom" value="$$createProductOne.price$$"/>
13484
<argument name="priceTo" value="$$createProductOne.price$$"/>
13585
</actionGroup>
136-
<actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResult"/>
137-
<see userInput="1 item" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
138-
<see userInput="$$createProductOne.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProductName"/>
13986
</test>
14087
</tests>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="AdvanceCatalogSearchVirtualProductByNameTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
12+
<annotations>
13+
<features value="CatalogSearch"/>
14+
<stories value="Advanced Catalog Product Search for all product types"/>
15+
<title value="Guest customer should be able to advance search virtual product with product name"/>
16+
<description value="Guest customer should be able to advance search virtual product with product name"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="MC-137"/>
19+
<group value="CatalogSearch"/>
20+
</annotations>
21+
</test>
22+
<test name="AdvanceCatalogSearchVirtualProductBySkuTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
23+
<annotations>
24+
<features value="CatalogSearch"/>
25+
<stories value="Advanced Catalog Product Search for all product types"/>
26+
<title value="Guest customer should be able to advance search virtual product with product sku"/>
27+
<description value="Guest customer should be able to advance search virtual product with product sku"/>
28+
<severity value="MAJOR"/>
29+
<testCaseId value="MC-162"/>
30+
<group value="CatalogSearch"/>
31+
</annotations>
32+
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductSkuActionGroup" stepKey="search">
33+
<argument name="sku" value="$$createProductOne.sku$$"/>
34+
</actionGroup>
35+
</test>
36+
<test name="AdvanceCatalogSearchVirtualProductByDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
37+
<annotations>
38+
<features value="CatalogSearch"/>
39+
<stories value="Advanced Catalog Product Search for all product types"/>
40+
<title value="Guest customer should be able to advance search virtual product with product description"/>
41+
<description value="Guest customer should be able to advance search virtual product with product description"/>
42+
<severity value="MAJOR"/>
43+
<testCaseId value="MC-163"/>
44+
<group value="CatalogSearch"/>
45+
</annotations>
46+
<actionGroup ref="StorefrontAdvancedCatalogSearchByDescriptionActionGroup" stepKey="search">
47+
<argument name="description" value="$$createProductOne.custom_attributes[description]$$"/>
48+
</actionGroup>
49+
</test>
50+
<test name="AdvanceCatalogSearchVirtualProductByShortDescriptionTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
51+
<annotations>
52+
<features value="CatalogSearch"/>
53+
<stories value="Advanced Catalog Product Search for all product types"/>
54+
<title value="Guest customer should be able to advance search virtual product with product short description"/>
55+
<description value="Guest customer should be able to advance search virtual product with product short description"/>
56+
<severity value="MAJOR"/>
57+
<testCaseId value="MC-164"/>
58+
<group value="CatalogSearch"/>
59+
</annotations>
60+
<actionGroup ref="StorefrontAdvancedCatalogSearchByShortDescriptionActionGroup" stepKey="search">
61+
<argument name="shortDescription" value="$$createProductOne.custom_attributes[short_description]$$"/>
62+
</actionGroup>
63+
</test>
64+
<test name="AdvanceCatalogSearchVirtualProductByPriceTest" extends="AdvanceCatalogSearchSimpleProductByNameTest">
65+
<annotations>
66+
<features value="CatalogSearch"/>
67+
<stories value="Advanced Catalog Product Search for all product types"/>
68+
<title value="Guest customer should be able to advance search virtual product with product price"/>
69+
<description value="Guest customer should be able to advance search virtual product with product price"/>
70+
<severity value="MAJOR"/>
71+
<testCaseId value="MC-165"/>
72+
<group value="CatalogSearch"/>
73+
</annotations>
74+
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="search">
75+
<argument name="name" value="$$createProductOne.name$$"/>
76+
<argument name="priceFrom" value="$$createProductOne.price$$"/>
77+
<argument name="priceTo" value="$$createProductOne.price$$"/>
78+
</actionGroup>
79+
</test>
80+
</tests>

0 commit comments

Comments
 (0)