-
Notifications
You must be signed in to change notification settings - Fork 133
MQE-1964: MFTF Helper - Implementation #644
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
11 commits
Select commit
Hold shift + click to select a range
1f59783
MQE-1964: MFTF Helper - Implementation
okolesnyk debda26
MQE-1964: MFTF Helper - Implementation
okolesnyk 4a710d6
MQE-1964: MFTF Helper - Implementation
okolesnyk 73a5ad6
MQE-1964: MFTF Helper - Implementation
okolesnyk 516c88a
MQE-1964: MFTF Helper - Implementation
okolesnyk 345ec25
MQE-1964: MFTF Helper - Implementation
okolesnyk 56d8f3c
MQE-1964: MFTF Helper - Implementation
okolesnyk 4458f0a
MQE-1964: MFTF Helper - Implementation
okolesnyk 2d73bdf
MQE-1964: MFTF Helper - Implementation
okolesnyk 6d701d8
Merge branch 'develop' into MQE-1964
okolesnyk 43d34b7
MQE-1964: MFTF Helper - Implementation
okolesnyk 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
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
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,10 @@ | ||
# Copyright © Magento, Inc. All rights reserved. | ||
# See COPYING.txt for license details. | ||
|
||
set -e | ||
|
||
echo "===============================" | ||
echo " EXECUTE DevDocsTest " | ||
echo "===============================" | ||
bin/mftf build:project | ||
bin/mftf run:test DevDocsTest -f |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
dev/tests/functional/tests/MFTF/DevDocs/ActionGroup/HelperActionGroup.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,24 @@ | ||
<?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="HelperActionGroup"> | ||
<arguments> | ||
<argument name="test" type="string" /> | ||
</arguments> | ||
<comment userInput="Action group to demonstrate helper functionality available from action groups." stepKey="comment" /> | ||
<helper class="\MFTF\DevDocs\Helper\CustomHelper" method="goTo" stepKey="customHelper"> | ||
<argument name="test">{{contentSection.parametrizedSelector(test)}}</argument> | ||
<argument name="module">['{{test}}', 'Bla']</argument> | ||
<argument name="url">{{test}}</argument> | ||
<argument name="bool">true</argument> | ||
<argument name="float">4.400000000234234</argument> | ||
<argument name="int">42</argument> | ||
</helper> | ||
</actionGroup> | ||
</actionGroups> |
14 changes: 14 additions & 0 deletions
14
dev/tests/functional/tests/MFTF/DevDocs/Data/HelperData.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. | ||
*/ | ||
--> | ||
|
||
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd"> | ||
<entity name="HelperData"> | ||
<data key="entityField">Some kind of data for testing purposes</data> | ||
</entity> | ||
</entities> |
49 changes: 49 additions & 0 deletions
49
dev/tests/functional/tests/MFTF/DevDocs/Helper/CustomHelper.php
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,49 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace MFTF\DevDocs\Helper; | ||
|
||
use Magento\FunctionalTestingFramework\Helper\Helper; | ||
|
||
class CustomHelper extends Helper | ||
{ | ||
/** | ||
* Custom helper. | ||
* | ||
* @param string $url | ||
* @param mixed $test | ||
* @param bool $bool | ||
* @param int $int | ||
* @param float $float | ||
* @param array $module | ||
* @param null $superBla | ||
* @param mixed $bla | ||
* @param array $arraysomething | ||
* @return void | ||
*/ | ||
public function goTo( | ||
string $url, | ||
$test, | ||
bool $bool, | ||
int $int, | ||
float $float, | ||
array $module = [], | ||
$superBla = null, | ||
$bla = 'blaValue', | ||
array $arraysomething = ['key' => 'value', 'test'] | ||
) { | ||
print('Hello, this is custom helper which provides an ability to write custom solutions.' . PHP_EOL); | ||
print('string $url = ' . $url . PHP_EOL); | ||
print('$test = ' . $test . PHP_EOL); | ||
print('$bool = ' . $bool . PHP_EOL); | ||
print('$int = ' . $int . PHP_EOL); | ||
print('$float = ' . $float . PHP_EOL); | ||
print('array $module = [' . implode(', ', $module) . ']' . PHP_EOL); | ||
print('$superBla = ' . $superBla . PHP_EOL); | ||
print('$bla = ' . $bla . PHP_EOL); | ||
print('array $arraysomething = [' . implode(', ', $arraysomething) . ']' . PHP_EOL); | ||
} | ||
} |
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
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
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
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
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
42 changes: 0 additions & 42 deletions
42
src/Magento/FunctionalTestingFramework/Helper/Acceptance.php
This file was deleted.
Oops, something went wrong.
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.