-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-1886: Ability to use grab data between ActionGroups #755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8f60fa8
MQE-1886: Ability to use grab data between ActionGroups
soumyau 6a27c3c
Merge remote-tracking branch 'origin/develop' into MQE-1886
soumyau 324bb68
MQE-1886: Ability to use grab data between ActionGroups
soumyau 669f5ee
MQE-1886: Ability to use grab data between ActionGroups
soumyau e01a26f
MQE-1886: Ability to use grab data between ActionGroups
soumyau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
dev/tests/verification/Resources/ActionGroupReturningValueTest.txt
This file contains hidden or 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 hidden or 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"); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
dev/tests/verification/Resources/ExtendedChildActionGroupReturningValueTest.txt
This file contains hidden or 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,43 @@ | ||
<?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 Child ActionGroup Returning Value Test") | ||
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest/ExtendedChildActionGroupReturningValueTest.xml<br>") | ||
*/ | ||
class ExtendedChildActionGroupReturningValueTestCest | ||
{ | ||
/** | ||
* @Severity(level = SeverityLevel::CRITICAL) | ||
* @Features({"TestModule"}) | ||
* @Parameter(name = "AcceptanceTester", value="$I") | ||
* @param AcceptanceTester $I | ||
* @return void | ||
* @throws \Exception | ||
*/ | ||
public function ExtendedChildActionGroupReturningValueTest(AcceptanceTester $I) | ||
{ | ||
$I->comment("Entering Action Group [extendedActionGroupReturningValue] ExtendedActionGroupReturningValueActionGroup"); | ||
$grabProducts1ExtendedActionGroupReturningValue = $I->grabMultiple("selector"); // stepKey: grabProducts1ExtendedActionGroupReturningValue | ||
$I->assertCount(99, $grabProducts1ExtendedActionGroupReturningValue); // stepKey: assertCountExtendedActionGroupReturningValue | ||
$extendedActionGroupReturningValue = $I->return($grabProducts1ExtendedActionGroupReturningValue); // stepKey: returnProducts1ExtendedActionGroupReturningValue | ||
$grabProducts2ExtendedActionGroupReturningValue = $I->grabMultiple("otherSelector"); // stepKey: grabProducts2ExtendedActionGroupReturningValue | ||
$I->assertCount(8000, $grabProducts2ExtendedActionGroupReturningValue); // stepKey: assertSecondCountExtendedActionGroupReturningValue | ||
$extendedActionGroupReturningValue = $I->return($grabProducts2ExtendedActionGroupReturningValue); // stepKey: returnProducts2ExtendedActionGroupReturningValue | ||
$I->comment("Exiting Action Group [extendedActionGroupReturningValue] ExtendedActionGroupReturningValueActionGroup"); | ||
$I->comment("Entering Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
$I->see($extendedActionGroupReturningValue, "#element .{$extendedActionGroupReturningValue}"); // stepKey: see1ActionGroupWithStringUsage1 | ||
$I->comment("Exiting Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
dev/tests/verification/Resources/MergedActionGroupReturningValueTest.txt
This file contains hidden or 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,77 @@ | ||
<?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/MergeFunctionalTest/MergedActionGroupReturningValueTest.xml<br>") | ||
*/ | ||
class MergedActionGroupReturningValueTestCest | ||
{ | ||
/** | ||
* @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 MergedActionGroupReturningValueTest(AcceptanceTester $I) | ||
{ | ||
$I->amOnPage("/someUrl"); // stepKey: step1 | ||
$I->comment("Entering Action Group [actionGroupWithReturnValue1] MergeActionGroupReturningValueActionGroup"); | ||
$I->amOnPage("/Jane/Dane.html"); // stepKey: amOnPage1ActionGroupWithReturnValue1 | ||
$I->click(".merge .Jane"); // stepKey: myMergedClickActionGroupWithReturnValue1 | ||
$grabMultiple1ActionGroupWithReturnValue1 = $I->grabMultiple("#foo"); // stepKey: grabMultiple1ActionGroupWithReturnValue1 | ||
$actionGroupWithReturnValue1 = $I->return($grabMultiple1ActionGroupWithReturnValue1); // stepKey: returnValueActionGroupWithReturnValue1 | ||
$I->comment("Exiting Action Group [actionGroupWithReturnValue1] MergeActionGroupReturningValueActionGroup"); | ||
$I->comment("Entering Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
$I->see($actionGroupWithReturnValue1, "#element .{$actionGroupWithReturnValue1}"); // stepKey: see1ActionGroupWithStringUsage1 | ||
$I->comment("Exiting Action Group [actionGroupWithStringUsage1] actionGroupWithStringUsage"); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...fication/TestModule/ActionGroup/BasicActionGroup/ActionGroupReturningValueActionGroup.xml
This file contains hidden or 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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="ActionGroupReturningValueActionGroup"> | ||
<arguments> | ||
<argument name="count" type="string"/> | ||
</arguments> | ||
<grabMultiple selector="selector" stepKey="grabProducts1"/> | ||
<assertCount stepKey="assertCount"> | ||
<expectedResult type="int">{{count}}</expectedResult> | ||
<actualResult type="variable">grabProducts1</actualResult> | ||
</assertCount> | ||
<return value="{$grabProducts1}" stepKey="returnProducts1"/> | ||
</actionGroup> | ||
</actionGroups> |
21 changes: 21 additions & 0 deletions
21
.../TestModule/ActionGroup/BasicActionGroup/ExtendedActionGroupReturningValueActionGroup.xml
This file contains hidden or 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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="ExtendedActionGroupReturningValueActionGroup" extends="ActionGroupReturningValueActionGroup"> | ||
<arguments> | ||
<argument name="otherCount" type="string"/> | ||
</arguments> | ||
<grabMultiple selector="otherSelector" stepKey="grabProducts2"/> | ||
<assertCount stepKey="assertSecondCount"> | ||
<expectedResult type="int">{{otherCount}}</expectedResult> | ||
<actualResult type="variable">grabProducts2</actualResult> | ||
</assertCount> | ||
<return value="{$grabProducts2}" stepKey="returnProducts2"/> | ||
</actionGroup> | ||
</actionGroups> |
14 changes: 14 additions & 0 deletions
14
...ule/ActionGroup/FunctionalActionGroup/FunctionalActionGroupWithReturnValueActionGroup.xml
This file contains hidden or 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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="FunctionalActionGroupWithReturnValueActionGroup"> | ||
<grabTextFrom selector="#foo" stepKey="grabTextFrom1"/> | ||
<return value="{$grabTextFrom1}" stepKey="return"/> | ||
</actionGroup> | ||
</actionGroups> |
19 changes: 19 additions & 0 deletions
19
...estModule/ActionGroup/FunctionalActionGroup/MergeActionGroupReturningValueActionGroup.xml
This file contains hidden or 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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="MergeActionGroupReturningValueActionGroup"> | ||
<arguments> | ||
<argument name="myArg"/> | ||
</arguments> | ||
<fillField userInput="Please delete me" selector="#delete" stepKey="deleteMe"/> | ||
<amOnPage url="{{SamplePage.url(myArg.firstname,myArg.lastname)}}" stepKey="amOnPage1"/> | ||
<grabMultiple selector="#foo" stepKey="grabMultiple1"/> | ||
<return value="{$grabMultiple1}" stepKey="returnValue"/> | ||
</actionGroup> | ||
</actionGroups> |
14 changes: 14 additions & 0 deletions
14
...dule/ActionGroup/MergeFunctionalActionGroup/MergeActionGroupReturningValueActionGroup.xml
This file contains hidden or 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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="MergeActionGroupReturningValueActionGroup"> | ||
<click stepKey="myMergedClick" selector=".merge .{{myArg.firstname}}" after="amOnPage1"/> | ||
<remove keyForRemoval="deleteMe"/> | ||
</actionGroup> | ||
</actionGroups> |
30 changes: 30 additions & 0 deletions
30
.../verification/TestModule/Test/ActionGroupFunctionalTest/ActionGroupReturningValueTest.xml
This file contains hidden or 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,30 @@ | ||
<?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="ActionGroupReturningValueTest"> | ||
<annotations> | ||
<severity value="CRITICAL"/> | ||
<group value="functional"/> | ||
<features value="Action Group Functional Cest"/> | ||
<stories value="MQE-433"/> | ||
</annotations> | ||
<before> | ||
<createData entity="ReplacementPerson" stepKey="createPersonParam"/> | ||
<actionGroup ref="FunctionalActionGroup" stepKey="beforeGroup"/> | ||
</before> | ||
<amOnPage url="/someUrl" stepKey="step1"/> | ||
<actionGroup ref="FunctionalActionGroupWithReturnValueActionGroup" stepKey="actionGroupWithReturnValue1"/> | ||
<actionGroup ref="actionGroupWithStringUsage" stepKey="actionGroupWithStringUsage1"> | ||
<argument name="someArgument" value="{$actionGroupWithReturnValue1}"/> | ||
</actionGroup> | ||
<after> | ||
<actionGroup ref="FunctionalActionGroup" stepKey="afterGroup"/> | ||
</after> | ||
</test> | ||
</tests> | ||
22 changes: 22 additions & 0 deletions
22
...ts/verification/TestModule/Test/ActionGroupTest/ExtendedActionGroupReturningValueTest.xml
This file contains hidden or 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,22 @@ | ||
<?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="ExtendedActionGroupReturningValueTest"> | ||
<annotations> | ||
<severity value="CRITICAL"/> | ||
<title value="Extended ActionGroup Returning Value Test"/> | ||
</annotations> | ||
<actionGroup ref="ActionGroupReturningValueActionGroup" stepKey="actionGroupReturningValue"> | ||
<argument name="count" value="99"/> | ||
</actionGroup> | ||
<actionGroup ref="actionGroupWithStringUsage" stepKey="actionGroupWithStringUsage1"> | ||
<argument name="someArgument" value="{$actionGroupReturningValue}"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.