I am learning on how to use MTF in my test module. I am trying to run generator using command

php generate.php

But I am getting following error -

Uncaught Error: Class 'Magento\Mtf\ObjectManagerFactory' not found

I am following the following link


Also there was an error which was coming before due to line in bootstrap.php-

require __DIR__ . '/../vendor/autoload.php';

So I gave path to autoload.php assuming it was path to the autoload.php located in vendor folder


I have resolved this issue by following this link -


All which was needed was to run composer install at location

cd <magento2_root_dir>/dev/tests/functional/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.