Installation of the Functional Testing Framework Entities
The Magento Testing Framework (MTF) is superseded by the Magento Functional Testing Framework (MFTF). While the MTF is still functional, all MTF tests are being ported over to the MFTF. We recommend using the MFTF for testing.
Well, you are on the way to install the Functional Testing Framework!
Follow the next three steps:
Check pre-installation conditions
Install the Magento application
To install the Magento application, see Magento Installation Guide.
Check if all required software installed and configured
For more details about PHP verification, installation and configuration, see PHP Settings.
php.ini file, make sure
extension=php_openssl.dll is not commented out. Note: The Windows environment is not officially supported.
Check if the Functional Testing Framework has been already installed
- Find directory
- Find the
vendordirectory. If the directory exists, you already have the Functional Testing Framework installed in
Perform the installation
The Functional Testing Framework requires Composer, which downloads libraries defined in
If you’re not sure that Composer is installed, see Install Composer.
- Open a command prompt.
Log in to your Magento server as a user with permissions to modify the Magento file system. (This is typically the Magento file system owner.)
If command failed, maybe Composer hasn’t been installed globally.
- To run it locally put
composer.pharinto directory, where
composer.jsonfile is located (that is,
- And run from this directory
php composer.phar install.
Check the installation
Find the Functional Testing Framework directory
Check whether the
vendor directory exists in
1 cd <magento2_root_dir>/dev/tests/functional/
1 cd vendor/magento
Verify the Functional Testing Framework version
<magento2_root_dir>/dev/tests/functional/vendor/magento/mtf/CHANGELOG.md. The latest version in
CHANGELOG.md is version of the FTF you installed.