Skip to content

Commit 7b1493f

Browse files
author
Onischenko, Yaroslav(yonischenko)
committed
Merge pull request magento#12 from magento-nord/develop
[NORD] Sample Data test coverage
2 parents ce075fc + 677cd33 commit 7b1493f

File tree

16 files changed

+661
-0
lines changed

16 files changed

+661
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\BundleSampleData\Test\TestCase;
7+
8+
use Magento\Mtf\TestCase\Injectable;
9+
use Magento\Bundle\Test\Fixture\BundleProduct;
10+
11+
/**
12+
* @ZephyrId MAGETWO-33559
13+
* @group Sample_Data_(MX)
14+
*/
15+
class NavigateBundleEntityTest extends Injectable
16+
{
17+
/* tags */
18+
const TEST_TYPE = 'acceptance_test';
19+
const MVP = 'yes';
20+
const DOMAIN = 'MX';
21+
/* end tags */
22+
23+
/**
24+
* Run test navigate products
25+
*
26+
* @param BundleProduct $product
27+
* @return array
28+
*/
29+
public function test(BundleProduct $product)
30+
{
31+
return ['product' => $product];
32+
}
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
9+
<testCase name="Magento\BundleSampleData\Test\TestCase\NavigateBundleEntityTest" summary="Install Magento via Web Interface with Sample Data" ticketId="MAGETWO-43636">
10+
<variation name="NavigateProductsTest1">
11+
<data name="product/data/url_key" xsi:type="string">sprite-yoga-companion-kit</data>
12+
<data name="product/data/name" xsi:type="string">Sprite Yoga Companion Kit</data>
13+
<data name="product/data/sku" xsi:type="string">24-WG080</data>
14+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
15+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
16+
</variation>
17+
</testCase>
18+
</config>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\CatalogSampleData\Test\TestCase;
7+
8+
use Magento\Mtf\TestCase\Injectable;
9+
use Magento\Catalog\Test\Fixture\CatalogProductSimple;
10+
11+
/**
12+
* @ZephyrId MAGETWO-33559
13+
* @group Sample_Data_(MX)
14+
*/
15+
class NavigateProductEntityTest extends Injectable
16+
{
17+
/* tags */
18+
const TEST_TYPE = 'acceptance_test';
19+
const MVP = 'yes';
20+
const DOMAIN = 'MX';
21+
/* end tags */
22+
23+
/**
24+
* Run test navigate products.
25+
*
26+
* @param CatalogProductSimple $product
27+
* @return array
28+
*/
29+
public function test(CatalogProductSimple $product)
30+
{
31+
return ['product' => $product];
32+
}
33+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
9+
<testCase name="Magento\CatalogSampleData\Test\TestCase\NavigateProductEntityTest" summary="Install Magento via Web Interface with Sample Data" ticketId="MAGETWO-33559">
10+
<variation name="NavigateProductsTest1">
11+
<data name="product/data/url_key" xsi:type="string">overnight-duffle</data>
12+
<data name="product/data/name" xsi:type="string">Overnight Duffle</data>
13+
<data name="product/data/sku" xsi:type="string">24-WB07</data>
14+
<data name="product/data/price/value" xsi:type="string">45</data>
15+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
16+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
17+
</variation>
18+
<variation name="NavigateProductsTest2">
19+
<data name="product/data/url_key" xsi:type="string">sprite-foam-roller</data>
20+
<data name="product/data/name" xsi:type="string">Sprite Foam Roller</data>
21+
<data name="product/data/sku" xsi:type="string">24-WG088</data>
22+
<data name="product/data/price/value" xsi:type="string">19</data>
23+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
24+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
25+
</variation>
26+
<variation name="NavigateProductsTest3">
27+
<data name="product/data/url_key" xsi:type="string">endurance-watch</data>
28+
<data name="product/data/name" xsi:type="string">Endurance Watch</data>
29+
<data name="product/data/sku" xsi:type="string">24-MG01</data>
30+
<data name="product/data/price/value" xsi:type="string">49</data>
31+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
32+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
33+
</variation>
34+
<variation name="NavigateProductsTest4">
35+
<data name="product/data/url_key" xsi:type="string">joust-duffle-bag</data>
36+
<data name="product/data/name" xsi:type="string">Joust Duffle Bag</data>
37+
<data name="product/data/sku" xsi:type="string">24-MB01</data>
38+
<data name="product/data/price/value" xsi:type="string">34</data>
39+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
40+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
41+
</variation>
42+
<variation name="NavigateProductsTest5">
43+
<data name="product/data/url_key" xsi:type="string">dual-handle-cardio-ball</data>
44+
<data name="product/data/name" xsi:type="string">Dual Handle Cardio Ball</data>
45+
<data name="product/data/sku" xsi:type="string">24-UG07</data>
46+
<data name="product/data/price/value" xsi:type="string">12</data>
47+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
48+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
49+
</variation>
50+
<variation name="NavigateProductsTest6">
51+
<data name="product/data/url_key" xsi:type="string">clamber-watch</data>
52+
<data name="product/data/name" xsi:type="string">Clamber Watch</data>
53+
<data name="product/data/sku" xsi:type="string">24-WG03</data>
54+
<data name="product/data/price/value" xsi:type="string">54</data>
55+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
56+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
57+
</variation>
58+
<variation name="NavigateProductsTest7">
59+
<data name="product/data/url_key" xsi:type="string">crown-summit-backpack</data>
60+
<data name="product/data/name" xsi:type="string">Crown Summit Backpack</data>
61+
<data name="product/data/sku" xsi:type="string">24-MB03</data>
62+
<data name="product/data/price/value" xsi:type="string">38</data>
63+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
64+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
65+
</variation>
66+
</testCase>
67+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\ConfigurableSampleData\Test\TestCase;
7+
8+
use Magento\Mtf\TestCase\Injectable;
9+
use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct;
10+
11+
/**
12+
* @ZephyrId MAGETWO-33559
13+
* @group Sample_Data_(MX)
14+
*/
15+
class NavigateConfigurableProductEntityTest extends Injectable
16+
{
17+
/* tags */
18+
const TEST_TYPE = 'acceptance_test';
19+
const MVP = 'yes';
20+
const DOMAIN = 'MX';
21+
/* end tags */
22+
23+
/**
24+
* Run test navigate products.
25+
*
26+
* @param ConfigurableProduct $product
27+
* @return array
28+
*/
29+
public function test(ConfigurableProduct $product)
30+
{
31+
return ['product' => $product];
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
9+
<testCase name="Magento\ConfigurableSampleData\Test\TestCase\NavigateConfigurableProductEntityTest" summary="Install Magento via Web Interface with Sample Data" ticketId="MAGETWO-33559">
10+
<variation name="NavigateProductsTest1">
11+
<data name="product/data/url_key" xsi:type="string">stellar-solar-jacket</data>
12+
<data name="product/data/name" xsi:type="string">Stellar Solar Jacket</data>
13+
<data name="product/data/sku" xsi:type="string">WJ01</data>
14+
<data name="product/data/price/value" xsi:type="string">75</data>
15+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
16+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
17+
</variation>
18+
<variation name="NavigateProductsTest2">
19+
<data name="product/data/url_key" xsi:type="string">eos-v-neck-hoodie</data>
20+
<data name="product/data/name" xsi:type="string">Eos V-Neck Hoodie</data>
21+
<data name="product/data/sku" xsi:type="string">WH11</data>
22+
<data name="product/data/price/value" xsi:type="string">54</data>
23+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
24+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
25+
</variation>
26+
<variation name="NavigateProductsTest3">
27+
<data name="product/data/url_key" xsi:type="string">gabrielle-micro-sleeve-top</data>
28+
<data name="product/data/name" xsi:type="string">Gabrielle Micro Sleeve Top</data>
29+
<data name="product/data/sku" xsi:type="string">WS02</data>
30+
<data name="product/data/price/value" xsi:type="string">28</data>
31+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
32+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
33+
</variation>
34+
<variation name="NavigateProductsTest4">
35+
<data name="product/data/url_key" xsi:type="string">electra-bra-top</data>
36+
<data name="product/data/name" xsi:type="string">Electra Bra Top</data>
37+
<data name="product/data/sku" xsi:type="string">WB01</data>
38+
<data name="product/data/price/value" xsi:type="string">39</data>
39+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
40+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
41+
</variation>
42+
<variation name="NavigateProductsTest5">
43+
<data name="product/data/url_key" xsi:type="string">karmen-yoga-pant</data>
44+
<data name="product/data/name" xsi:type="string">Karmen Yoga Pant</data>
45+
<data name="product/data/sku" xsi:type="string">WP01</data>
46+
<data name="product/data/price/value" xsi:type="string">39</data>
47+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
48+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
49+
</variation>
50+
<variation name="NavigateProductsTest6">
51+
<data name="product/data/url_key" xsi:type="string">fiona-fitness-short</data>
52+
<data name="product/data/name" xsi:type="string">Fiona Fitness Short</data>
53+
<data name="product/data/sku" xsi:type="string">WSH01</data>
54+
<data name="product/data/price/value" xsi:type="string">29</data>
55+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
56+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
57+
</variation>
58+
<variation name="NavigateProductsTest7">
59+
<data name="product/data/url_key" xsi:type="string">beaumont-summit-kit</data>
60+
<data name="product/data/name" xsi:type="string">Beaumont Summit Kit</data>
61+
<data name="product/data/sku" xsi:type="string">MJ01</data>
62+
<data name="product/data/price/value" xsi:type="string">42</data>
63+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
64+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
65+
</variation>
66+
<variation name="NavigateProductsTest8">
67+
<data name="product/data/url_key" xsi:type="string">chaz-kangeroo-hoodie</data>
68+
<data name="product/data/name" xsi:type="string">Chaz Kangeroo Hoodie</data>
69+
<data name="product/data/sku" xsi:type="string">MH01</data>
70+
<data name="product/data/price/value" xsi:type="string">52</data>
71+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
72+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
73+
</variation>
74+
<variation name="NavigateProductsTest9">
75+
<data name="product/data/url_key" xsi:type="string">zoltan-gym-tee</data>
76+
<data name="product/data/name" xsi:type="string">Zoltan Gym Tee</data>
77+
<data name="product/data/sku" xsi:type="string">MS06</data>
78+
<data name="product/data/price/value" xsi:type="string">29</data>
79+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
80+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
81+
</variation>
82+
<variation name="NavigateProductsTest10">
83+
<data name="product/data/url_key" xsi:type="string">atlas-fitness-tank</data>
84+
<data name="product/data/name" xsi:type="string">Atlas Fitness Tank</data>
85+
<data name="product/data/sku" xsi:type="string">MT11</data>
86+
<data name="product/data/price/value" xsi:type="string">18</data>
87+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
88+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
89+
</variation>
90+
<variation name="NavigateProductsTest11">
91+
<data name="product/data/url_key" xsi:type="string">caesar-warm-up-pant</data>
92+
<data name="product/data/name" xsi:type="string">Caesar Warm-Up Pant</data>
93+
<data name="product/data/sku" xsi:type="string">MP01</data>
94+
<data name="product/data/price/value" xsi:type="string">35</data>
95+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
96+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
97+
</variation>
98+
<variation name="NavigateProductsTest12">
99+
<data name="product/data/url_key" xsi:type="string">arcadio-gym-short</data>
100+
<data name="product/data/name" xsi:type="string">Arcadio Gym Short</data>
101+
<data name="product/data/sku" xsi:type="string">MSH11</data>
102+
<data name="product/data/price/value" xsi:type="string">20</data>
103+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
104+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
105+
</variation>
106+
<variation name="NavigateProductsTest13">
107+
<data name="product/data/url_key" xsi:type="string">stark-fundamental-hoodie</data>
108+
<data name="product/data/name" xsi:type="string">Stark Fundamental Hoodie</data>
109+
<data name="product/data/sku" xsi:type="string">MH06</data>
110+
<data name="product/data/price/value" xsi:type="string">42</data>
111+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
112+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
113+
</variation>
114+
<variation name="NavigateProductsTest14">
115+
<data name="product/data/url_key" xsi:type="string">hollister-backyard-sweatshirt</data>
116+
<data name="product/data/name" xsi:type="string">Hollister Backyard Sweatshirt</data>
117+
<data name="product/data/sku" xsi:type="string">MH05</data>
118+
<data name="product/data/price/value" xsi:type="string">52</data>
119+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
120+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
121+
</variation>
122+
<variation name="NavigateProductsTest15">
123+
<data name="product/data/url_key" xsi:type="string">chloe-compete-tank</data>
124+
<data name="product/data/name" xsi:type="string">Chloe Compete Tank</data>
125+
<data name="product/data/sku" xsi:type="string">WT06</data>
126+
<data name="product/data/price/value" xsi:type="string">39</data>
127+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
128+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
129+
</variation>
130+
<variation name="NavigateProductsTest16">
131+
<data name="product/data/url_key" xsi:type="string">abominable-hoodie</data>
132+
<data name="product/data/name" xsi:type="string">Abominable Hoodie</data>
133+
<data name="product/data/sku" xsi:type="string">MH09</data>
134+
<data name="product/data/price/value" xsi:type="string">69</data>
135+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
136+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
137+
</variation>
138+
<variation name="NavigateProductsTest17">
139+
<data name="product/data/url_key" xsi:type="string">caesar-warm-up-pant</data>
140+
<data name="product/data/name" xsi:type="string">Caesar Warm-Up Pant</data>
141+
<data name="product/data/sku" xsi:type="string">MP01</data>
142+
<data name="product/data/price/value" xsi:type="string">35</data>
143+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
144+
<constraint name="Magento\Catalog\Test\Constraint\AssertImagesAreVisibleOnProductPage" />
145+
</variation>
146+
</testCase>
147+
</config>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\CustomerSampleData\Test\TestCase;
8+
9+
use Magento\Customer\Test\Fixture\Customer;
10+
use Magento\Mtf\TestCase\Injectable;
11+
use Magento\Customer\Test\Page\CustomerAccountIndex;
12+
13+
/**
14+
* @group Sample_Data_(MX)
15+
* @ZephyrId MAGETWO-33559
16+
*/
17+
class LoginCustomerTest extends Injectable
18+
{
19+
/* tags */
20+
const MVP = 'yes';
21+
const DOMAIN = 'CS';
22+
const TEST_TYPE = 'acceptance_test';
23+
/* end tags */
24+
25+
/**
26+
* Create Customer account on Storefront.
27+
*
28+
* @param Customer $customer
29+
* @param CustomerAccountIndex $customerAccountIndex
30+
*/
31+
public function test(Customer $customer, CustomerAccountIndex $customerAccountIndex)
32+
{
33+
// Steps
34+
$this->objectManager->create(
35+
'Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep',
36+
['customer' => $customer]
37+
)->run();
38+
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('Account Information');
39+
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('Address Book');
40+
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('My Orders');
41+
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('My Wish List');
42+
}
43+
}

0 commit comments

Comments
 (0)