Skip to content

Commit 24c7dfe

Browse files
authored
Merge pull request #633 from magento/MQE-2028
MQE-2028: DevDoc & MFTF Notice for MFTF 3.0.0 specific upgrade instructions
2 parents ab4cceb + da614d4 commit 24c7dfe

File tree

6 files changed

+35
-202
lines changed

6 files changed

+35
-202
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
Magento Functional Testing Framework Changelog
22
================================================
3+
3.0.0
4+
-----
5+
### Upgrade Instructions
6+
* Run `bin/mftf reset --hard` to remove old generated configurations.
7+
* Run `bin/mftf build:project` to generate new configurations.
8+
* Run `bin/mftf upgrade:tests`. [See command page for details](./docs/commands/mftf.md#upgradetests).
9+
* After running the above command, some tests may need manually updates:
10+
* Remove all occurrences of `<executeInSelenium>` and `<performOn>`
11+
* Remove all occurrences of `<module file=""/>` from any `<suite>`s
12+
* Ensure all `<assert*>` actions in your tests have a valid schema.
13+
* Lastly, try to generate all tests. Tests should all be generated as a result of the upgrades.
14+
* If not, the most likely issue will be a changed XML schema. Check error messaging and search your codebase for the attributes listed.
15+
316
2.6.3
417
-----
518

docs/commands/mftf.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ Otherwise, it will apply all the major version MFTF upgrade scripts to all insta
477477

478478
`Test Module` should have the directory structure of ActionGroup, Data, Metadata, Page, Section, Test, and Suite.
479479

480+
**Note**:
481+
482+
The upgrade scripts are meant to be used for Test Modules under source code control. If you have old versions of test modules under vendor, those test modules will get upgraded
483+
480484
#### Usage
481485

482486
```bash

docs/guides/git-vs-composer-install.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ The file structure under both paths is the same:
5555
│   └── ...
5656
├── Section
5757
│   └── ...
58+
├── Suite
59+
│   └── ...
5860
└── Test
5961
└── ...
6062
```
@@ -65,6 +67,7 @@ With either type of installation, all tests and test data are read and merged by
6567

6668
1. `<magento_root>/app/code/<vendor_name>/<module_name>/Test/Mftf/`
6769
1. `<magento_root>/vendor/<vendor_name>/<module_name>/Test/Mftf/`
70+
1. `<magento_root>/dev/tests/acceptance/tests/functional/<vendor_name>/<module_name>/`
6871

6972
## Conclusion
7073

docs/introduction.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Introduction to the Magento Functional Testing Framework
22

3+
<div class="bs-callout bs-callout-info" markdown="1">
4+
These are the docs for the latest MFTF release.
5+
To find older documentation, please refer to the [docs folder] of your desired release in Github.
6+
</div>
7+
38
[Find your MFTF version][] of the MFTF.
49

510
The Magento Functional Testing Framework (MFTF) aims to replace the [Functional Testing Framework] in future releases.
@@ -99,14 +104,14 @@ codeception.dist.yml // Codeception configuration (generated while ru
99104

100105
## MFTF tests
101106

102-
The MFTF supports two different locations for storing the tests and test artifacts:
103-
107+
The MFTF supports three different locations for storing the tests and test artifacts:
104108
- `<magento_root>/app/code/<vendor_name>/<module_name>/Test/Mftf/` is the directory to create new tests.
105109
- `<magento_root>/vendor/<vendor_name>/<module_name>/Test/Mftf/` is the directory with the out of the box tests (fetched by the Composer).
110+
- `<magento_root>/dev/tests/acceptance/tests/functional/<vendor_name>/<module_name>/` is used to store tests that depend on multiple modules.
106111

107112
All tests and test data from these locations are merged in the order indicated in the above list.
108113

109-
The file structure under the both path cases is the same:
114+
Directories immediately following the above paths will use the same format, and sub-directories under each category are supported.
110115

111116
```tree
112117
<Path>
@@ -120,6 +125,8 @@ The file structure under the both path cases is the same:
120125
│   └── ...
121126
├── Section
122127
│   └── ...
128+
├── Suite
129+
│   └── ...
123130
└── Test
124131
└── ...
125132
```
@@ -134,3 +141,4 @@ Follow the [MFTF project] and [contribute on Github].
134141
[MFTF project]: https://github.com/magento/magento2-functional-testing-framework
135142
[Find your MFTF version]: #find-your-mftf-version
136143
[MFTF Test Migration]: https://github.com/magento/magento-functional-tests-migration
144+
[docs folder]: https://github.com/magento/magento2-functional-testing-framework/tree/master/docs

0 commit comments

Comments
 (0)