-
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 branch 'develop' into AM/severity-levels
- Loading branch information
Showing
38 changed files
with
952 additions
and
98 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
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 @@ | ||
theme: jekyll-theme-hacker |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
dev/tests/verification/Resources/ActionGroupReturningValueTest.txt
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,75 @@ | ||
<?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; | ||
|
||
/** | ||
* @group functional | ||
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest/ActionGroupReturningValueTest.xml<br>") | ||
*/ | ||
class ActionGroupReturningValueTestCest | ||
{ | ||
/** | ||
* @param AcceptanceTester $I | ||
* @throws \Exception | ||
*/ | ||
public function _before(AcceptanceTester $I) | ||
{ | ||
$I->createEntity("createPersonParam", "hook", "ReplacementPerson", [], []); // stepKey: createPersonParam | ||
$I->comment("Entering Action Group [beforeGroup] FunctionalActionGroup"); | ||
$I->fillField("#foo", "myData1"); // stepKey: fillField1BeforeGroup | ||
$I->fillField("#bar", "myData2"); // stepKey: fillField2BeforeGroup | ||
$I->comment("Exiting Action Group [beforeGroup] FunctionalActionGroup"); | ||
} | ||
|
||
/** | ||
* @param AcceptanceTester $I | ||
* @throws \Exception | ||
*/ | ||
public function _after(AcceptanceTester $I) | ||
{ | ||
$I->comment("Entering Action Group [afterGroup] FunctionalActionGroup"); | ||
$I->fillField("#foo", "myData1"); // stepKey: fillField1AfterGroup | ||
$I->fillField("#bar", "myData2"); // stepKey: fillField2AfterGroup | ||
$I->comment("Exiting Action Group [afterGroup] FunctionalActionGroup"); | ||
} | ||
|
||
/** | ||
* @param AcceptanceTester $I | ||
* @throws \Exception | ||
*/ | ||
public function _failed(AcceptanceTester $I) | ||
{ | ||
$I->saveScreenshot(); // stepKey: saveScreenshot | ||
} | ||
|
||
/** | ||
* @Severity(level = SeverityLevel::CRITICAL) | ||
* @Features({"TestModule"}) | ||
* @Stories({"MQE-433"}) | ||
* @Parameter(name = "AcceptanceTester", value="$I") | ||
* @param AcceptanceTester $I | ||
* @return void | ||
* @throws \Exception | ||
*/ | ||
public function ActionGroupReturningValueTest(AcceptanceTester $I) | ||
{ | ||
$I->amOnPage("/someUrl"); // stepKey: step1 | ||
$I->comment("Entering Action Group [actionGroupWithReturnValue1] FunctionalActionGroupWithReturnValueActionGroup"); | ||
$grabTextFrom1ActionGroupWithReturnValue1 = $I->grabTextFrom("#foo"); // stepKey: grabTextFrom1ActionGroupWithReturnValue1 | ||
$actionGroupWithReturnValue1 = $I->return($grabTextFrom1ActionGroupWithReturnValue1); // stepKey: returnActionGroupWithReturnValue1 | ||
$I->comment("Exiting Action Group [actionGroupWithReturnValue1] FunctionalActionGroupWithReturnValueActionGroup"); | ||
$I->comment("Entering Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
$I->see($actionGroupWithReturnValue1, "#element .{$actionGroupWithReturnValue1}"); // stepKey: see1ActionGroupWithStringUsage1 | ||
$I->comment("Exiting Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
dev/tests/verification/Resources/ExtendedActionGroupReturningValueTest.txt
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,40 @@ | ||
<?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; | ||
|
||
/** | ||
* @Title("[NO TESTCASEID]: Extended ActionGroup Returning Value Test") | ||
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest/ExtendedActionGroupReturningValueTest.xml<br>") | ||
*/ | ||
class ExtendedActionGroupReturningValueTestCest | ||
{ | ||
/** | ||
* @Severity(level = SeverityLevel::CRITICAL) | ||
* @Features({"TestModule"}) | ||
* @Parameter(name = "AcceptanceTester", value="$I") | ||
* @param AcceptanceTester $I | ||
* @return void | ||
* @throws \Exception | ||
*/ | ||
public function ExtendedActionGroupReturningValueTest(AcceptanceTester $I) | ||
{ | ||
$I->comment("Entering Action Group [actionGroupReturningValue] ActionGroupReturningValueActionGroup"); | ||
$grabProducts1ActionGroupReturningValue = $I->grabMultiple("selector"); // stepKey: grabProducts1ActionGroupReturningValue | ||
$I->assertCount(99, $grabProducts1ActionGroupReturningValue); // stepKey: assertCountActionGroupReturningValue | ||
$actionGroupReturningValue = $I->return($grabProducts1ActionGroupReturningValue); // stepKey: returnProducts1ActionGroupReturningValue | ||
$I->comment("Exiting Action Group [actionGroupReturningValue] ActionGroupReturningValueActionGroup"); | ||
$I->comment("Entering Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
$I->see($actionGroupReturningValue, "#element .{$actionGroupReturningValue}"); // stepKey: see1ActionGroupWithStringUsage1 | ||
$I->comment("Exiting Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
} | ||
} |
Oops, something went wrong.