Skip to content

Sync Master with develop #597

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
merged 28 commits into from
Feb 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
309a1f2
Remove ref files from repo.
dobooth Feb 4, 2020
c67ffdd
MQE-1986: Mark `executeInSelenium` and `performOn` as deprecated in MFTF
jilu1 Feb 6, 2020
165ed37
MQE-1989: added deprecation notices for upcoming MFTF 3.0.0 changes.
jilu1 Feb 6, 2020
efe6816
MQE-1992: Add new environment variable ELASTICSEARCH_VERSION and set …
jilu1 Feb 6, 2020
db70578
MQE-1986: Mark `executeInSelenium` and `performOn` as deprecated in MFTF
jilu1 Feb 6, 2020
06b3337
Merge branch 'MQE-1986' into MQE-1989
jilu1 Feb 6, 2020
93654b8
Updated example code
dobooth Feb 7, 2020
ae04503
MQE-1989: added deprecation notices for upcoming MFTF 3.0.0 changes.
jilu1 Feb 11, 2020
511fe24
Merge pull request #579 from magento/MQE-1989
jilu1 Feb 11, 2020
6480f03
Merge pull request #580 from magento/MQE-1992
jilu1 Feb 11, 2020
f5739a7
MQE-1988: MFTF failures after PHP upgrade (libzip5 v1.60+)
soumyau Feb 10, 2020
3497e7d
MQE-1988: MFTF failures after PHP upgrade (libzip5 v1.60+)
soumyau Feb 10, 2020
e69feab
MQE-1988: MFTF failures after PHP upgrade (libzip5 v1.60+)
soumyau Feb 11, 2020
81f826a
MQE-1988: MFTF failures after PHP upgrade (libzip5 v1.60+)
soumyau Feb 11, 2020
4bc7155
Merge pull request #594 from magento/MQE-1988
okolesnyk Feb 11, 2020
f56c556
Merge pull request #596 from magento/2.6.1-RC
okolesnyk Feb 11, 2020
29711af
MQE-1989: added deprecation notices for upcoming MFTF 3.0.0 changes.
jilu1 Feb 11, 2020
46cbae1
Merge pull request #598 from magento/MQE-1989
jilu1 Feb 11, 2020
b48fbe5
Update deprecation message
okolesnyk Feb 11, 2020
5895be1
Update verification test
okolesnyk Feb 11, 2020
748449d
Update verification test
okolesnyk Feb 11, 2020
b00f5e1
Merge pull request #599 from magento/2.6.1-RC
okolesnyk Feb 11, 2020
b918c10
Merge pull request #576 from magento-devdocs/db_remove_refs
KevinBKozan Feb 12, 2020
d632ab3
Merge pull request #582 from magento-devdocs/db_actions
KevinBKozan Feb 12, 2020
fb69c1a
MQE-1997: type float is wrongly treated as integer in assert actions
jilu1 Feb 13, 2020
724ca69
MQE-2000: CHANGELOG.MD and Composer version bump
soumyau Feb 13, 2020
ba72b5a
MQE-2000: CHANGELOG.MD and Composer version bump
soumyau Feb 13, 2020
8b33258
Merge pull request #600 from magento/MQE-1997
okolesnyk Feb 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Magento Functional Testing Framework Changelog
================================================

2.6.2
-----

### Fixes
* Fixed float conversion error in test generation

2.6.1
-----

* Usability
* Introduced new `.env` configuration `ELASTICSEARCH_VERSION` to support multiple elasticsearch versions
* Maintainability
* Added deprecation notices for upcoming MFTF 3.0.0
* Replaced facebook webdriver with php-webdriver to support PHP version updates

2.6.0
-----

Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/magento2-functional-testing-framework",
"description": "Magento2 Functional Testing Framework",
"type": "library",
"version": "2.6.0",
"version": "2.6.2",
"license": "AGPL-3.0",
"keywords": ["magento", "automation", "functional", "testing"],
"config": {
Expand All @@ -25,7 +25,8 @@
"monolog/monolog": "^1.0",
"mustache/mustache": "~2.5",
"symfony/process": "^2.8 || ^3.1 || ^4.0",
"vlucas/phpdotenv": "^2.4"
"vlucas/phpdotenv": "^2.4",
"php-webdriver/webdriver": "^1.8.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "~3.2",
Expand All @@ -44,6 +45,9 @@
"suggest": {
"epfremme/swagger-php": "^2.0"
},
"replace": {
"facebook/webdriver": "^1.7.1"
},
"autoload": {
"files": ["src/Magento/FunctionalTestingFramework/_bootstrap.php"],
"psr-4": {
Expand Down
128 changes: 66 additions & 62 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dev/tests/verification/Resources/AssertTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class AssertTestCest
$I->assertEmpty([], "pass"); // stepKey: assertEmpty
$I->assertEquals($text, "Copyright © 2013-2017 Magento, Inc. All rights reserved.", "pass"); // stepKey: assertEquals1
$I->assertEquals("Copyright © 2013-2017 Magento, Inc. All rights reserved.", $text, "pass"); // stepKey: assertEquals2
$I->assertEquals(1.5, $text, "pass"); // stepKey: assertFloatTypeIsCorrect
$I->assertFalse(false, "pass"); // stepKey: assertFalse1
$I->assertFileNotExists("/out.txt", "pass"); // stepKey: assertFileNotExists1
$I->assertFileNotExists($text, "pass"); // stepKey: assertFileNotExists2
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/BasicFunctionalTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
/**
* @Title("[NO TESTCASEID]: A Functional Cest")
* @group functional
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest.xml<br>")
* @Description("<h3 class='y-label y-label_status_broken'>Deprecated Notice(s):</h3><ul><li>DEPRECATED ACTION in Test: at step performOnKey1 'performOn' is DEPRECATED and will be removed in MFTF 3.0.0.</li></ul><h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest.xml<br>")
*/
class BasicFunctionalTestCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/ExecuteInSeleniumTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<h3>Test files</h3>verification/TestModule/Test/ExecuteInSeleniumTest.xml<br>")
* @Description("<h3 class='y-label y-label_status_broken'>Deprecated Notice(s):</h3><ul><li>DEPRECATED ACTION in Test: at step executeInSeleniumStep 'executeInSelenium' is DEPRECATED and will be removed in MFTF 3.0.0.</li></ul><h3>Test files</h3>verification/TestModule/Test/ExecuteInSeleniumTest.xml<br>")
*/
class ExecuteInSeleniumTestCest
{
Expand Down
4 changes: 4 additions & 0 deletions dev/tests/verification/TestModule/Test/AssertTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
<expectedResult type="string">Copyright © 2013-2017 Magento, Inc. All rights reserved.</expectedResult>
<actualResult type="variable">text</actualResult>
</assertEquals>
<assertEquals stepKey="assertFloatTypeIsCorrect" message="pass">
<expectedResult type="float">1.5</expectedResult>
<actualResult type="variable">text</actualResult>
</assertEquals>
<assertFalse stepKey="assertFalse1" message="pass">
<actualResult type="bool">0</actualResult>
</assertFalse>
Expand Down
6 changes: 0 additions & 6 deletions docs/actiongroup-list.md

This file was deleted.

30 changes: 0 additions & 30 deletions docs/mftf-tests.md

This file was deleted.

49 changes: 26 additions & 23 deletions docs/test/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ This step can be referenced within the test using `conditionalClickStep1`.

The value format should met the following principles:

* Must be unique within [`<test>`](../test.md#test-tag).
* Naming should be as descriptive as possible:
* Describe the action performed.
* Briefly describe the purpose.
* Describe which data is in use.
* Should be in camelCase with lowercase first letter.
* Should be the last attribute of an element.
* Must be unique within [`<test>`](../test.md#test-tag).
* Naming should be as descriptive as possible:
* Describe the action performed.
* Briefly describe the purpose.
* Describe which data is in use.
* Should be in camelCase with lowercase first letter.
* Should be the last attribute of an element.

### `before` and `after`

Expand Down Expand Up @@ -142,25 +142,25 @@ Here, [`<click>`](#click) performs a click on a button that can be found by the

The following test actions return a variable:

* [grabAttributeFrom](#grabattributefrom)
* [grabCookie](#grabcookie)
* [grabFromCurrentUrl](#grabfromcurrenturl)
* [grabMultiple](#grabmultiple)
* [grabPageSource](#grabpagesource)
* [grabTextFrom](#grabtextfrom)
* [grabValueFrom](#grabvaluefrom)
* [executeJS](#executejs)
* [grabAttributeFrom](#grabattributefrom)
* [grabCookie](#grabcookie)
* [grabFromCurrentUrl](#grabfromcurrenturl)
* [grabMultiple](#grabmultiple)
* [grabPageSource](#grabpagesource)
* [grabTextFrom](#grabtextfrom)
* [grabValueFrom](#grabvaluefrom)
* [executeJS](#executejs)

Learn more in [Using data returned by test actions](../data.md#use-data-returned-by-test-actions).

## Actions handling data entities

The following test actions handle data entities using [metadata](../metadata.md):

* [createData](#createdata)
* [deleteData](#deletedata)
* [updateData](#updatedata)
* [getData](#getdata)
* [createData](#createdata)
* [deleteData](#deletedata)
* [updateData](#updatedata)
* [getData](#getdata)

Learn more in [Handling a REST API response](../metadata.md#rest-response).

Expand Down Expand Up @@ -973,6 +973,8 @@ Attribute|Type|Use|Description

### executeInSelenium

#### NOTE: `executeInSelenium` action is DEPRECATED and will be removed in MFTF 3.0.0.

See [executeInSelenium docs on codeception.com](http://codeception.com/docs/modules/WebDriver#executeInSelenium).

Attribute|Type|Use|Description
Expand Down Expand Up @@ -1287,7 +1289,6 @@ Attribute|Type|Use|Description
`before`|string|optional| `stepKey` of action that must be executed next.
`after`|string|optional| `stepKey` of preceding action.


#### Example
```xml
<magentoCron stepKey="runStagingCronJobs" groups="staging"/>
Expand Down Expand Up @@ -1460,6 +1461,8 @@ Attribute|Type|Use|Description

### performOn

#### NOTE: `performOn` action is DEPRECATED and will be removed in MFTF 3.0.0.

See [performOn docs on codeception.com](http://codeception.com/docs/modules/WebDriver#performOn).

Attribute|Type|Use|Description
Expand Down Expand Up @@ -1974,13 +1977,13 @@ Attribute|Type|Use|Description
#### Examples

```xml
<!-- Verify there are 10 `<div id="product" ... >...</div>` elements on the page. -->
<!-- Verify there are 10 `<div class="product" ... >...</div>` elements on the page. -->
<seeNumberOfElements userInput="10" selector="div.product" stepKey="seeTenProducts"/>
```

```xml
<!-- Verify there are between 5 and 10 `<div id="product" ... >...</div>` elements on the page. -->
<seeNumberOfElements userInput="[5, 10]" selector=".product" stepKey="seeFiveToTenProducts"/>
<!-- Verify there are between 5 and 10 `<div class="product" ... >...</div>` elements on the page. -->
<seeNumberOfElements parameterArray="[5, 10]" selector="div.product" stepKey="seeFiveToTenProducts"/>
```

### seeOptionIsSelected
Expand Down
2 changes: 2 additions & 0 deletions etc/config/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ MODULE_WHITELIST=Magento_Framework,ConfigurableProductWishlist,ConfigurableProdu
#ENABLE_BROWSER_LOG=true
#BROWSER_LOG_BLACKLIST=other

#*** Elastic Search version used for test ***#
ELASTICSEARCH_VERSION=7
#*** End of .env ***#
Loading