-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from magento-commerce/ACQE-5871
ACQE-5871: Add ability to increase default MagentoCLI timeout
- Loading branch information
Showing
7 changed files
with
109 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
namespace Magento\AcceptanceTest\_default\Backend; | ||
|
||
use Magento\FunctionalTestingFramework\AcceptanceTester; | ||
use \Codeception\Util\Locator; | ||
use Yandex\Allure\Adapter\Annotation\Features; | ||
use Yandex\Allure\Adapter\Annotation\Stories; | ||
use Yandex\Allure\Adapter\Annotation\Title; | ||
use Yandex\Allure\Adapter\Annotation\Description; | ||
use Yandex\Allure\Adapter\Annotation\Parameter; | ||
use Yandex\Allure\Adapter\Annotation\Severity; | ||
use Yandex\Allure\Adapter\Model\SeverityLevel; | ||
use Yandex\Allure\Adapter\Annotation\TestCaseId; | ||
|
||
/** | ||
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest/MagentoCliTest.xml<br>") | ||
*/ | ||
class MagentoCliTestCest | ||
{ | ||
/** | ||
* @var bool | ||
*/ | ||
private $isSuccess = false; | ||
|
||
/** | ||
* @param AcceptanceTester $I | ||
* @throws \Exception | ||
*/ | ||
public function _after(AcceptanceTester $I) | ||
{ | ||
if ($this->isSuccess) { | ||
unlink(__FILE__); | ||
} | ||
} | ||
|
||
/** | ||
* @Features({"TestModule"}) | ||
* @param AcceptanceTester $I | ||
* @return void | ||
* @throws \Exception | ||
*/ | ||
public function MagentoCliTest(AcceptanceTester $I) | ||
{ | ||
$magentoCli1 = $I->magentoCLI("maintenance:enable", 45, "\"stuffHere\""); // stepKey: magentoCli1 | ||
$I->comment($magentoCli1); | ||
$magentoCli2 = $I->magentoCLI("maintenance:enable", 120, "\"stuffHere\""); // stepKey: magentoCli2 | ||
$I->comment($magentoCli2); | ||
$magentoCli3 = $I->magentoCLISecret("config:set somePath " . $I->getSecret("someKey"), 45); // stepKey: magentoCli3 | ||
$I->comment($magentoCli3); // stepKey: magentoCli3 | ||
$magentoCli4 = $I->magentoCLISecret("config:set somePath " . $I->getSecret("someKey"), 120); // stepKey: magentoCli4 | ||
$I->comment($magentoCli4); // stepKey: magentoCli4 | ||
} | ||
|
||
public function _passed(AcceptanceTester $I) | ||
{ | ||
// Test passed successfully. | ||
$this->isSuccess = true; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
dev/tests/verification/TestModule/Test/BasicFunctionalTest/MagentoCliTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="MagentoCliTest"> | ||
<magentoCLI command="maintenance:enable" arguments=""stuffHere"" stepKey="magentoCli1"/> | ||
<magentoCLI command="maintenance:enable" arguments=""stuffHere"" timeout="120" stepKey="magentoCli2"/> | ||
<magentoCLI command="config:set somePath {{_CREDS.someKey}}" stepKey="magentoCli3"/> | ||
<magentoCLI command="config:set somePath {{_CREDS.someKey}}" timeout="120" stepKey="magentoCli4"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters