Skip to content

Commit 8d6c5d5

Browse files
authored
Merge branch 'MFTF3.0.0-RC2' into bugfix/544-missing-request-information
2 parents a31b49c + 5ac5683 commit 8d6c5d5

File tree

399 files changed

+8637
-7802
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+8637
-7802
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
language: php
22
php:
3-
- 7.0
4-
- 7.1
5-
- 7.2
63
- 7.3
4+
services:
5+
- docker
6+
before_install:
7+
- docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-zirconium
78
install: composer install --no-interaction --prefer-source
89
env:
910
matrix:
1011
- VERIFICATION_TOOL=phpunit-checks
1112
- VERIFICATION_TOOL=static-checks
13+
- VERIFICATION_TOOL=functional
1214
script:
1315
- bin/$VERIFICATION_TOOL
1416
after_success:

CHANGELOG.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,99 @@
11
Magento Functional Testing Framework Changelog
22
================================================
3+
3.0.0 RC1
4+
---------
5+
6+
### Enhancements
7+
* Customizability
8+
* Introduced MFTF helpers `<helper>` to create custom actions outside of MFTF.
9+
* Removed deprecated actions `<executeSelenium>` and `<performOn>`.
10+
* Maintainability
11+
* Schema updates for test entities to only allow single entity per file except Data and Metadata.
12+
* Support for sub-folders in test modules.
13+
* Removed support to read test entities from `<magento>dev/tests/acceptance/tests/functional/Magento/FunctionalTest`.
14+
* Removed support for PHP 7.0 and 7.1.
15+
* Removed file attribute for `<module>` in suiteSchema.
16+
* Traceability
17+
* Removed `--debug` option NONE to disallow ability to turn off schema validation.
18+
* Notices added for test entity naming convention violations.
19+
* Metadata file names changed to `*Meta.xml`.
20+
* Readability
21+
* Support only nested assertion syntax [See assertions page for details](./docs/test/assertions.md)
22+
* Upgrade scripts added to upgrade tests to MFTF major version requirements. See upgrade instructions below.
23+
* Bumped dependencies to latest possible versions.
24+
25+
### Fixes
26+
* Throw exception during generation when leaving out .url for `amOnPage`.
27+
* `request_timeout` and `connection_timeout` added to functional.suite.yml.dist.
28+
* Fixed `ModuleResolver` to resolve test modules moved out of deprecated path.
29+
30+
### Upgrade Instructions
31+
* Run `bin/mftf reset --hard` to remove old generated configurations.
32+
* Run `bin/mftf build:project` to generate new configurations.
33+
* Run `bin/mftf upgrade:tests`. [See command page for details](./docs/commands/mftf.md#upgradetests).
34+
* After running the above command, some tests may need manually updates:
35+
* Remove all occurrences of `<executeInSelenium>` and `<performOn>`
36+
* Remove all occurrences of `<module file=""/>` from any `<suite>`s
37+
* Ensure all `<assert*>` actions in your tests have a valid schema.
38+
* Lastly, try to generate all tests. Tests should all be generated as a result of the upgrades.
39+
* If not, the most likely issue will be a changed XML schema. Check error messaging and search your codebase for the attributes listed.
40+
41+
2.6.3
42+
-----
43+
44+
### New Feature
45+
* `--filter` option was added to `bin/mftf generate:tests` command. For more details please go to https://devdocs.magento.com/mftf/docs/commands/mftf.html#generatetests
46+
47+
2.6.2
48+
-----
49+
50+
### Fixes
51+
* Fixed float conversion error in test generation
52+
53+
2.6.1
54+
-----
55+
56+
* Usability
57+
* Introduced new `.env` configuration `ELASTICSEARCH_VERSION` to support multiple elasticsearch versions
58+
* Maintainability
59+
* Added deprecation notices for upcoming MFTF 3.0.0
60+
* Replaced facebook webdriver with php-webdriver to support PHP version updates
61+
62+
2.6.0
63+
-----
64+
65+
* Usability
66+
* `magentoCron` action added by community maintainer @lbajsarowicz
67+
* Traceability
68+
* MFTF generated cest files are fully compatible for Codeception `dry-run`.
69+
* Modularity
70+
* `mftf generate:tests` and `mftf run:test` commands now accept suite scoped test names in format `[suitename:testname]...`.
71+
* Maintainability
72+
* Support `deprecated` syntax for the following test entities:
73+
* Test
74+
* Action Group
75+
* Data
76+
* Metadata
77+
* Page
78+
* Section
79+
* Section Element
80+
* See DevDocs for details
81+
* Improved `mftf static-checks` command to allow executing all or specific static checks.
82+
* Added a new static check that checks and reports unused arguments in action groups.
83+
* Customizability
84+
* AWS Secrets Manager has been added as an additional credential storage.
85+
* See DevDocs for details
86+
* Bumped dependencies to latest possible versions
87+
88+
### Fixes
89+
* Fixed missing before, after, failed steps in cest file when generating tests with `--allow-skipped` option.
90+
* Fixed suites and tests display issue in Allure `Suites` page after `mftf run:group` command.
91+
* `createData` action now shows a meaningful error message at runtime when the entity does not exist.
92+
93+
### GitHub Issues/Pull requests:
94+
* [#537](https://github.com/magento/magento2-functional-testing-framework/pull/537) -- Refactor of TestGenerator class
95+
* [#538](https://github.com/magento/magento2-functional-testing-framework/pull/538) -- FEATURE: <magentoCron> command to execute Cron Jobs
96+
397
2.5.4
498
-----
599
[Demo Video](https://www.youtube.com/watch?v=tguvkw1HWKg)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ See the license [here][] or contact [[email protected]][] for a copy.
7070

7171
<!-- Link Definitions -->
7272
[Getting Started]: docs/getting-started.md
73-
[Contribution Guidelines]: .github/CONTRIBUTING.html
73+
[Contribution Guidelines]: https://github.com/magento/magento2-functional-testing-framework/blob/develop/.github/CONTRIBUTING.md
7474
[DevDocs Contributing]: https://github.com/magento/devdocs/blob/master/.github/CONTRIBUTING.md
7575
7676
[encryption key]: https://info2.magento.com/rs/magentoenterprise/images/security_at_magento.asc
7777
[here]: https://magento.com/security/reporting-magento-security-issue
7878
[Security Alert Notifications]: https://magento.com/security/sign-up
7979
[here]: LICENSE_AGPL3.txt
80-
80+

bin/functional

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright © Magento, Inc. All rights reserved.
2+
# See COPYING.txt for license details.
3+
4+
set -e
5+
6+
echo "==============================="
7+
echo " EXECUTE DevDocsTest "
8+
echo "==============================="
9+
bin/mftf build:project
10+
bin/mftf run:test DevDocsTest -f

composer.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,61 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "2.5.4",
5+
"version": "3.0.0",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {
99
"sort-packages": true
1010
},
1111
"require": {
12-
"php": "7.0.2||7.0.4||~7.0.6||~7.1.0||~7.2.0||~7.3.0",
12+
"php": "^7.3",
1313
"ext-curl": "*",
14+
"ext-dom": "*",
1415
"ext-json": "*",
1516
"ext-openssl": "*",
16-
"allure-framework/allure-codeception": "~1.3.0",
17+
"allure-framework/allure-codeception": "~1.4.0",
1718
"aws/aws-sdk-php": "^3.132",
18-
"codeception/codeception": "~2.4.5",
19-
"composer/composer": "^1.4",
20-
"consolidation/robo": "^1.0.0",
19+
"codeception/codeception": "~4.1.4",
20+
"codeception/module-asserts": "^1.1",
21+
"codeception/module-sequence": "^1.0",
22+
"codeception/module-webdriver": "^1.0",
23+
"composer/composer": "^1.6",
2124
"csharpru/vault-php": "~3.5.3",
2225
"csharpru/vault-php-guzzle6-transport": "^2.0",
23-
"flow/jsonpath": ">0.2",
24-
"fzaninotto/faker": "^1.6",
2526
"monolog/monolog": "^1.0",
2627
"mustache/mustache": "~2.5",
27-
"symfony/process": "^2.8 || ^3.1 || ^4.0",
28+
"php-webdriver/webdriver": "^1.8.0",
29+
"symfony/console": "^4.4",
30+
"symfony/finder": "^4.4",
31+
"symfony/mime": "^5.0",
32+
"symfony/process": "^4.4",
2833
"vlucas/phpdotenv": "^2.4"
2934
},
3035
"require-dev": {
3136
"squizlabs/php_codesniffer": "~3.2",
32-
"sebastian/phpcpd": "~3.0 || ~4.0",
37+
"sebastian/phpcpd": "~4.0||~5.0",
3338
"brainmaestro/composer-git-hooks": "^2.3.1",
3439
"doctrine/cache": "<1.7.0",
3540
"codeception/aspect-mock": "^3.0",
3641
"goaop/framework": "2.2.0",
3742
"codacy/coverage": "^1.4",
3843
"phpmd/phpmd": "^2.6.0",
39-
"phpunit/phpunit": "~6.5.0 || ~7.0.0",
44+
"phpunit/phpunit": "~9.0.0",
4045
"rregeer/phpunit-coverage-check": "^0.1.4",
4146
"php-coveralls/php-coveralls": "^1.0",
4247
"symfony/stopwatch": "~3.4.6"
4348
},
4449
"suggest": {
4550
"epfremme/swagger-php": "^2.0"
4651
},
52+
"replace": {
53+
"facebook/webdriver": "^1.7.1"
54+
},
4755
"autoload": {
4856
"files": ["src/Magento/FunctionalTestingFramework/_bootstrap.php"],
4957
"psr-4": {
5058
"Magento\\FunctionalTestingFramework\\": "src/Magento/FunctionalTestingFramework",
51-
"MFTF\\": "dev/tests/functional/MFTF"
59+
"MFTF\\": "dev/tests/functional/tests/MFTF"
5260
}
5361
},
5462
"autoload-dev": {

0 commit comments

Comments
 (0)