Having a little trouble with the MFTF? See some common errors and fixes below.
AcceptanceTester class issues
If you see the following error:
1 2 AcceptanceTester class doesn't exist in suite folder. Run the 'build' command to generate it
Something went wrong during the
mftf build:project command that prevented the creation of the AcceptanceTester class.
This issue is fixed in the MFTF 2.5.0.
In versions of the MFTF lower than 2.5.0 you should:
Open the functional.suite.yml file at:
<magento root directory>/dev/tests/acceptance/tests/functional.suite.yml
Add quotation marks (
") around these values:
- Run the
vendor/bin/mftf build:projectcommand again.
You should see the AcceptanceTester class is created at:
<magento root directory>/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/AcceptanceTester.php
Troubleshoot your WebDriver issues on various browsers.
You are unable to upload file input using the MFTF actions and are seeing the following exception:
1 2 [Facebook\WebDriver\Exception\NoSuchDriverException] No active session with ID e56f9260-b366-11e7-966b-db3e6f35d8e1
Use of PhantomJS is not supported by the MFTF.
For headless browsing, the Headless Chrome has better compatibility with the MFTF.