Skip to content

Commit f1ecc23

Browse files
authored
Merge branch 'develop' into CLI-direct-shell-exec
2 parents f132281 + acf280b commit f1ecc23

File tree

253 files changed

+10451
-2381
lines changed

Some content is hidden

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

253 files changed

+10451
-2381
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ All contributors are required to submit a click-through form to agree to the ter
4040

4141
- Unit/integration test coverage
4242
- Proposed documentation update.
43-
For the documentation contribution guidelines, see [DevDocs Contributing][devdocs].
43+
For the documentation contribution guidelines, see [DOCUMENTATION_TEMPLATE][].
4444
7. For large features or changes, [open an issue][issue] to discuss first.
4545
This may prevent duplicate or unnecessary effort, and it may gain you some additional contributors.
4646
8. To report a bug, [open an issue][issue], and follow [guidelines about bugfix issues][issue reporting].
@@ -160,7 +160,7 @@ Label| Description
160160
[create issue]: https://help.github.com/articles/creating-an-issue/
161161
[create pr]: https://help.github.com/articles/creating-a-pull-request/
162162
[Definition of Done]: https://devdocs.magento.com/guides/v2.2/contributor-guide/contributing_dod.html
163-
[devdocs]: https://github.com/magento/devdocs/blob/master/.github/CONTRIBUTING.html
163+
[DOCUMENTATION_TEMPLATE]: https://github.com/magento/devdocs/blob/master/.github/DOCUMENTATION_TEMPLATE.md
164164
[existing issues]: https://github.com/magento/magento2-functional-testing-framework/issues?q=is%3Aopen+is%3Aissue
165165
[existing PRs]: https://github.com/magento/magento2-functional-testing-framework/pulls?q=is%3Aopen+is%3Apr
166166
[GitHub documentation]: https://help.github.com/articles/syncing-a-fork
@@ -171,4 +171,4 @@ Label| Description
171171
[Magento Contributor Agreement]: http://www.magento.com/legaldocuments/mca
172172
[MFTF repository]: https://github.com/magento/magento2-functional-testing-framework
173173
[open new issue]: https://github.com/magento/magento2-functional-testing-framework/issues/new
174-
[Travis CI]: https://travis-ci.com/magento/magento2-functional-testing-framework/pull_requests
174+
[Travis CI]: https://travis-ci.com/magento/magento2-functional-testing-framework/pull_requests

.github/DOCUMENTATION_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# How to contribute to MFTF docs
2+
3+
We welcome contributions to the MFTF documentation, which is kept within the `docs/` folder in this repository.
4+
This page describes the submitting process and serves as a template for a properly written content.
5+
The contribution workflow is the same as submitting code.
6+
7+
1. Create a branch from the `develop` branch in the [MFTF repository][].
8+
1. Make edits/additions/deletions as needed. Read the [Basic Template][] for tips on how to write with Markdown.
9+
1. Submit your pull request to the `develop` branch.
10+
11+
Once submitted, a member of the documentation team will review and merge it.
12+
We will inform you if it needs any additional processing.
13+
14+
The documentation in this repository is used as the source for the [MFTF documentation][].
15+
Any changes to the table of contents will need to be made through a separate pull request in the regular [Magento Developer documentation repository][].
16+
17+
Read more about how to [Contribute to Magento Devdocs][].
18+
19+
<!-- For readability, we abstract the link URLS to the bottom of the page. The extra set of square brackets denotes it is a link, rather than plain brackets. >
20+
21+
<!-- Link Definitions -->
22+
[Magento Developer documentation repository]: https://github.com/magento/devdocs/blob/master/_data/toc/mftf.yml
23+
[MFTF repository]: https://github.com/magento/magento2-functional-testing-framework
24+
[Contribute to Magento Devdocs]: https://github.com/magento/devdocs/blob/master/.github/CONTRIBUTING.md
25+
[MFTF documentation]: https://devdocs.magento.com/mftf/docs/introduction.html
26+
[Basic Template]: https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/basic_template.html

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ dev/tests/functional/MFTF.suite.yml
1616
dev/tests/functional/_output
1717
dev/mftf.log
1818
dev/tests/mftf.log
19-
dev/tests/docs/*
19+
dev/tests/docs/*
20+
dev/tests/_output
21+
dev/tests/functional.suite.yml

CHANGELOG.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,96 @@
11
Magento Functional Testing Framework Changelog
22
================================================
33

4+
2.5.1
5+
-----
6+
7+
### Fixes
8+
* Fixed missing `use` statement in the generate:suite command
9+
10+
### GitHub Issues
11+
* [#471](https://github.com/magento/magento2-functional-testing-framework/issues/471) -- PHP Fatal error: MftfApplicationConfig not found in GenerateSuiteCommand
12+
13+
2.5.0
14+
-----
15+
* Traceability
16+
* Allure output has been enhanced to contain new test artifacts created and used per MFTF step:
17+
* `makeScreenshot` will contain an attachment under its Allure step.
18+
* `seeInCurrentUrl` and all other `Url` asserts now contain an attachment with the expects vs actual comparison.
19+
* `createData` and all other `Data` actions now contain attachments with `Request Body` and `Response Body`.
20+
* Modularity
21+
* Added a new `mftf run:manifest` command to run testManifest files generated by `generate:tests`.
22+
* See DevDocs for details
23+
* `mftf generate/run:test` commands now implicitly generates the `suite` the test exists in.
24+
* If a test exists in multiple suites, it will generate it in all suite contexts.
25+
* `mftf run:test <testName>` will now only run the exact test provided, regardless of what is generated.
26+
* Maintainability
27+
* Added an `--allow-skipped` flag that allows MFTF to ignore the `<skip>` annotation. This was added to the following commands:
28+
* `generate:test`
29+
* `run:test`
30+
* `run:group`
31+
* `run:failed`
32+
* Customizability
33+
* `<entity>` defined in data.xml can now reference other `<entity>` directly.
34+
* See DevDocs for details
35+
* Added vault as an alternative credential storage.
36+
* See DevDocs for details
37+
38+
### Fixes
39+
* Fixed an issue where `grab` action variables were not substituting correctly when used as an element parameter.
40+
* Framework will not throw a descriptive error when referencing a `$persisted.field$` that does not exist.
41+
* MFTF test materials that `extends=""` itself will no longer cause infinite recursion.
42+
* Fixed an issue where a test could not reference a `$data.field$` whose casing was modified by the API that it used.
43+
* Fixed an issue with the default `functional.suite.yml` where it was incompatible with `symfony/yaml 4.0.0`.
44+
* Improved test generation performance via class refactors (`~10%` faster).
45+
46+
### GitHub Issues/Pull requests:
47+
* [#377](https://github.com/magento/magento2-functional-testing-framework/pull/377) -- Non-API operations fixes
48+
49+
2.4.5
50+
-----
51+
### Fixes
52+
* Fixed an issue where `.credentials` was required when using `<createData>` actions with field overrides.
53+
54+
2.4.4
55+
-----
56+
### Fixes
57+
* Fixed an issue where `_CREDS` could not be resolved when used in a suite.
58+
59+
2.4.3
60+
-----
61+
* Customizability
62+
* Use of `_CREDS` has been extended to `<magentoCLI>` and `<createData>` actions
63+
* Traceability
64+
* A Test step is now generated and injected in the allure report when a test is reported as `BROKEN`.
65+
66+
### Fixes
67+
* `static-checks` command now properly returns `1` if any static check failed.
68+
* MFTF Console Printer class correctly utilizes `--steps` and other flags passed directly to `codecept commands`.
69+
* `*source` actions correctly print when using `userInput` or `html` attributes.
70+
* XML Comments should no longer throw an error in parsing when used outside `test/actionGroup`
71+
72+
### GitHub Issues/Pull requests:
73+
* [#703](https://github.com/magento/magento2-functional-testing-framework/pull/403) -- SMALL_CHANGE: Minor change suggested
74+
75+
2.4.2
76+
-----
77+
* Traceability
78+
* Test action `stepKey`s are now included in both console output and Allure report.
79+
* XML Comments are now automatically converted into a `<comment>` action.
80+
81+
### Fixes
82+
* Moved `epfremme/swagger-php` dependency to `suggests` block due to a conflict with Magento extensions.
83+
84+
2.4.1
85+
-----
86+
* Traceability
87+
* XSD Schema validation is now enabled by default in `generate:tests`, `run:test`, `run:failed`, `run:group`
88+
* `--debug` option for the above commands has been updated to include different debug levels
89+
* See DevDocs for details
90+
91+
### Fixes
92+
* Fixed an issue where `skipReadiness` attribute would cause false XSD Schema validation errors.
93+
494
2.4.0
595
-----
696
### Enhancements

bin/mftf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ try {
2929
try {
3030
$application = new Symfony\Component\Console\Application();
3131
$application->setName('Magento Functional Testing Framework CLI');
32-
$application->setVersion('2.4.0');
32+
$application->setVersion('2.5.1');
3333
/** @var \Magento\FunctionalTestingFramework\Console\CommandListInterface $commandList */
3434
$commandList = new \Magento\FunctionalTestingFramework\Console\CommandList;
3535
foreach ($commandList->getCommands() as $command) {

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "2.4.0",
5+
"version": "2.5.1",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {
99
"sort-packages": true
1010
},
1111
"require": {
1212
"php": "7.0.2||7.0.4||~7.0.6||~7.1.0||~7.2.0||~7.3.0",
13-
"allure-framework/allure-codeception": "~1.3.0",
1413
"ext-curl": "*",
14+
"allure-framework/allure-codeception": "~1.3.0",
1515
"codeception/codeception": "~2.3.4 || ~2.4.0 ",
16+
"composer/composer": "^1.6",
1617
"consolidation/robo": "^1.0.0",
17-
"epfremme/swagger-php": "^2.0",
18+
"csharpru/vault-php": "~3.5.3",
19+
"csharpru/vault-php-guzzle6-transport": "^2.0",
1820
"flow/jsonpath": ">0.2",
1921
"fzaninotto/faker": "^1.6",
2022
"monolog/monolog": "^1.0",
@@ -36,6 +38,9 @@
3638
"php-coveralls/php-coveralls": "^1.0",
3739
"symfony/stopwatch": "~3.4.6"
3840
},
41+
"suggest": {
42+
"epfremme/swagger-php": "^2.0"
43+
},
3944
"autoload": {
4045
"files": ["src/Magento/FunctionalTestingFramework/_bootstrap.php"],
4146
"psr-4": {

0 commit comments

Comments
 (0)