Skip to content

Commit 0668f1f

Browse files
committed
MAGETWO-48334: Fixing Bugs to meet SLA
1 parent ba60497 commit 0668f1f

File tree

2 files changed

+171
-171
lines changed

2 files changed

+171
-171
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
<?php
2-
/**
3-
* Copyright © 2015 Magento. All rights reserved.
4-
* See COPYING.txt for license details.
5-
*/
6-
7-
namespace Magento\ConfigurableProduct\Test\TestCase;
8-
9-
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
10-
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
11-
use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct;
12-
use Magento\Mtf\TestCase\Injectable;
13-
14-
/**
15-
* Test Coverage for CreateConfigurableProductEntity
16-
*
17-
* Test Flow:
18-
*
19-
* Preconditions:
20-
* 1. Two simple products are created.
21-
* 2. Configurable attribute with two options is created
22-
* 3. Configurable attribute added to Default template
23-
*
24-
* Steps:
25-
* 1. Go to Backend
26-
* 2. Open Product -> Catalog
27-
* 3. Click on narrow near "Add Product" button
28-
* 4. Select Configurable Product
29-
* 5. Fill in data according to data sets
30-
* 5.1 If field "attributeNew/dataset" is not empty - search created attribute by putting it's name
31-
* to variation Search field.
32-
* 5.2 If "attribute/dataset" is not empty- create new Variation Set
33-
* 6. Save product
34-
* 7. Perform all assertions
35-
*
36-
* @group Configurable_Product_(MX)
37-
* @ZephyrId MAGETWO-26041
38-
*/
39-
class CreateConfigurableProductEntityTest extends Injectable
40-
{
41-
/* tags */
42-
const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
43-
const MVP = 'yes';
44-
const DOMAIN = 'MX';
45-
/* end tags */
46-
47-
/**
48-
* Product page with a grid
49-
*
50-
* @var CatalogProductIndex
51-
*/
52-
protected $productIndex;
53-
54-
/**
55-
* Page to create a product
56-
*
57-
* @var CatalogProductNew
58-
*/
59-
protected $productNew;
60-
61-
/**
62-
* Injection data
63-
*
64-
* @param CatalogProductIndex $productIndex
65-
* @param CatalogProductNew $productNew
66-
* @return void
67-
*/
68-
public function __inject(CatalogProductIndex $productIndex, CatalogProductNew $productNew)
69-
{
70-
$this->productIndex = $productIndex;
71-
$this->productNew = $productNew;
72-
}
73-
74-
/**
75-
* Test create catalog Configurable product run
76-
*
77-
* @param ConfigurableProduct $product
78-
* @return void
79-
*/
80-
public function test(ConfigurableProduct $product)
81-
{
82-
$this->markTestIncomplete('MAGETWO-48724');
83-
// Steps
84-
$this->productIndex->open();
85-
$this->productIndex->getGridPageActionBlock()->addProduct('configurable');
86-
$this->productNew->getProductForm()->fill($product);
87-
$this->productNew->getFormPageActions()->save($product);
88-
}
89-
}
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\ConfigurableProduct\Test\TestCase;
8+
9+
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
10+
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
11+
use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct;
12+
use Magento\Mtf\TestCase\Injectable;
13+
14+
/**
15+
* Test Coverage for CreateConfigurableProductEntity
16+
*
17+
* Test Flow:
18+
*
19+
* Preconditions:
20+
* 1. Two simple products are created.
21+
* 2. Configurable attribute with two options is created
22+
* 3. Configurable attribute added to Default template
23+
*
24+
* Steps:
25+
* 1. Go to Backend
26+
* 2. Open Product -> Catalog
27+
* 3. Click on narrow near "Add Product" button
28+
* 4. Select Configurable Product
29+
* 5. Fill in data according to data sets
30+
* 5.1 If field "attributeNew/dataset" is not empty - search created attribute by putting it's name
31+
* to variation Search field.
32+
* 5.2 If "attribute/dataset" is not empty- create new Variation Set
33+
* 6. Save product
34+
* 7. Perform all assertions
35+
*
36+
* @group Configurable_Product_(MX)
37+
* @ZephyrId MAGETWO-26041
38+
*/
39+
class CreateConfigurableProductEntityTest extends Injectable
40+
{
41+
/* tags */
42+
const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
43+
const MVP = 'yes';
44+
const DOMAIN = 'MX';
45+
/* end tags */
46+
47+
/**
48+
* Product page with a grid
49+
*
50+
* @var CatalogProductIndex
51+
*/
52+
protected $productIndex;
53+
54+
/**
55+
* Page to create a product
56+
*
57+
* @var CatalogProductNew
58+
*/
59+
protected $productNew;
60+
61+
/**
62+
* Injection data
63+
*
64+
* @param CatalogProductIndex $productIndex
65+
* @param CatalogProductNew $productNew
66+
* @return void
67+
*/
68+
public function __inject(CatalogProductIndex $productIndex, CatalogProductNew $productNew)
69+
{
70+
$this->productIndex = $productIndex;
71+
$this->productNew = $productNew;
72+
}
73+
74+
/**
75+
* Test create catalog Configurable product run
76+
*
77+
* @param ConfigurableProduct $product
78+
* @return void
79+
*/
80+
public function test(ConfigurableProduct $product)
81+
{
82+
$this->markTestIncomplete('MAGETWO-48724');
83+
// Steps
84+
$this->productIndex->open();
85+
$this->productIndex->getGridPageActionBlock()->addProduct('configurable');
86+
$this->productNew->getProductForm()->fill($product);
87+
$this->productNew->getFormPageActions()->save($product);
88+
}
89+
}
Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
1-
<?php
2-
/**
3-
* Copyright © 2015 Magento. All rights reserved.
4-
* See COPYING.txt for license details.
5-
*/
6-
7-
namespace Magento\Store\Test\TestCase;
8-
9-
use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10-
use Magento\Backend\Test\Page\Adminhtml\StoreNew;
11-
use Magento\Store\Test\Fixture\Store;
12-
use Magento\Mtf\TestCase\Injectable;
13-
14-
/**
15-
* Test Creation for CreateStoreEntity (Store Management)
16-
*
17-
* Test Flow:
18-
*
19-
* Preconditions:
20-
* 1. Create Store Group
21-
*
22-
* Steps:
23-
* 1. Open Backend
24-
* 2. Go to Stores -> All Stores
25-
* 3. Click "Create Store View" button
26-
* 4. Fill data according to dataset
27-
* 5. Perform all assertions
28-
*
29-
* @group Store_Management_(PS)
30-
* @ZephyrId MAGETWO-27647
31-
*/
32-
class CreateStoreEntityTest extends Injectable
33-
{
34-
/* tags */
35-
const MVP = 'yes';
36-
const DOMAIN = 'PS';
37-
const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
38-
/* end tags */
39-
40-
/**
41-
* Page StoreIndex
42-
*
43-
* @var StoreIndex
44-
*/
45-
protected $storeIndex;
46-
47-
/**
48-
* Page StoreNew
49-
*
50-
* @var StoreNew
51-
*/
52-
protected $storeNew;
53-
54-
/**
55-
* Preparing pages for test
56-
*
57-
* @param StoreIndex $storeIndex
58-
* @param StoreNew $storeNew
59-
* @return void
60-
*/
61-
public function __inject(StoreIndex $storeIndex, StoreNew $storeNew)
62-
{
63-
$this->storeIndex = $storeIndex;
64-
$this->storeNew = $storeNew;
65-
}
66-
67-
/**
68-
* Runs Test Creation for StoreEntityTest
69-
*
70-
* @param Store $store
71-
* @return void
72-
*/
73-
public function test(Store $store)
74-
{
75-
$this->markTestIncomplete('MAGETWO-48723');
76-
//Steps:
77-
$this->storeIndex->open();
78-
$this->storeIndex->getGridPageActions()->addStoreView();
79-
$this->storeNew->getStoreForm()->fill($store);
80-
$this->storeNew->getFormPageActions()->save();
81-
}
82-
}
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Store\Test\TestCase;
8+
9+
use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10+
use Magento\Backend\Test\Page\Adminhtml\StoreNew;
11+
use Magento\Store\Test\Fixture\Store;
12+
use Magento\Mtf\TestCase\Injectable;
13+
14+
/**
15+
* Test Creation for CreateStoreEntity (Store Management)
16+
*
17+
* Test Flow:
18+
*
19+
* Preconditions:
20+
* 1. Create Store Group
21+
*
22+
* Steps:
23+
* 1. Open Backend
24+
* 2. Go to Stores -> All Stores
25+
* 3. Click "Create Store View" button
26+
* 4. Fill data according to dataset
27+
* 5. Perform all assertions
28+
*
29+
* @group Store_Management_(PS)
30+
* @ZephyrId MAGETWO-27647
31+
*/
32+
class CreateStoreEntityTest extends Injectable
33+
{
34+
/* tags */
35+
const MVP = 'yes';
36+
const DOMAIN = 'PS';
37+
const TEST_TYPE = 'acceptance_test, extended_acceptance_test';
38+
/* end tags */
39+
40+
/**
41+
* Page StoreIndex
42+
*
43+
* @var StoreIndex
44+
*/
45+
protected $storeIndex;
46+
47+
/**
48+
* Page StoreNew
49+
*
50+
* @var StoreNew
51+
*/
52+
protected $storeNew;
53+
54+
/**
55+
* Preparing pages for test
56+
*
57+
* @param StoreIndex $storeIndex
58+
* @param StoreNew $storeNew
59+
* @return void
60+
*/
61+
public function __inject(StoreIndex $storeIndex, StoreNew $storeNew)
62+
{
63+
$this->storeIndex = $storeIndex;
64+
$this->storeNew = $storeNew;
65+
}
66+
67+
/**
68+
* Runs Test Creation for StoreEntityTest
69+
*
70+
* @param Store $store
71+
* @return void
72+
*/
73+
public function test(Store $store)
74+
{
75+
$this->markTestIncomplete('MAGETWO-48723');
76+
//Steps:
77+
$this->storeIndex->open();
78+
$this->storeIndex->getGridPageActions()->addStoreView();
79+
$this->storeNew->getStoreForm()->fill($store);
80+
$this->storeNew->getFormPageActions()->save();
81+
}
82+
}

0 commit comments

Comments
 (0)