Skip to content

MQE-2028: DevDoc & MFTF Notice for MFTF 3.0.0 specific upgrade instructions #633

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

2.6.3
-----

Expand Down
4 changes: 4 additions & 0 deletions docs/commands/mftf.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ Otherwise, it will apply all the major version MFTF upgrade scripts to all insta

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

**Note**:

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

#### Usage

```bash
Expand Down
3 changes: 3 additions & 0 deletions docs/guides/git-vs-composer-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ The file structure under both paths is the same:
│   └── ...
├── Section
│   └── ...
├── Suite
│   └── ...
└── Test
└── ...
```
Expand All @@ -65,6 +67,7 @@ With either type of installation, all tests and test data are read and merged by

1. `<magento_root>/app/code/<vendor_name>/<module_name>/Test/Mftf/`
1. `<magento_root>/vendor/<vendor_name>/<module_name>/Test/Mftf/`
1. `<magento_root>/dev/tests/acceptance/tests/functional/<vendor_name>/<module_name>/`

## Conclusion

Expand Down
14 changes: 11 additions & 3 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Introduction to the Magento Functional Testing Framework

<div class="bs-callout bs-callout-info" markdown="1">
These are the docs for the latest MFTF release.
To find older documentation, please refer to the [docs folder] of your desired release in Github.
</div>

[Find your MFTF version][] of the MFTF.

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

## MFTF tests

The MFTF supports two different locations for storing the tests and test artifacts:

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

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

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

```tree
<Path>
Expand All @@ -120,6 +125,8 @@ The file structure under the both path cases is the same:
│   └── ...
├── Section
│   └── ...
├── Suite
│   └── ...
└── Test
└── ...
```
Expand All @@ -134,3 +141,4 @@ Follow the [MFTF project] and [contribute on Github].
[MFTF project]: https://github.com/magento/magento2-functional-testing-framework
[Find your MFTF version]: #find-your-mftf-version
[MFTF Test Migration]: https://github.com/magento/magento-functional-tests-migration
[docs folder]: https://github.com/magento/magento2-functional-testing-framework/tree/master/docs
Loading