I am trying to run to test but every time I run a command that is related to the vendor folder, it shows the following error 'vendor' is not recognized or extend command operable program or batch file in Magento

I do not know what I must do in the next step

Has anyone can help me a hand, please!


1 Answer 1


As far as I Understand, you may try these things

Install dependencies via composer

composer update

Run test

In linux


In Windows


I hope this will help

  • I already run that command line but it does not work for me. When I run this command line vendor/bin/mftf generate: test is still show me that error vendor' is not recognized or extend command operable program or batch file in Magento
    – Kite Hany
    Jul 10, 2019 at 6:44
  • You should try this vendor\bin\phpunit in your command line Interface if you are using window check the screenshot screencast.com/t/6jjkitmdVSGN. For linux you should use 'vendor/bin/phpunit'. Jul 10, 2019 at 6:49
  • Run this command line in root magento2 not mftf, right?
    – Kite Hany
    Jul 10, 2019 at 6:56
  • I don't get the opportunity of experiencing mftf. composer update should be in root magento2 but you can test run regardless where you are standing Jul 10, 2019 at 6:59
  • Hi @Muhammad Hasham, when I run vendor/bin/mftf generate:tests, it shows me that error: in ModuleReSovlver.php line 444: Could not retrieve API from Magento instance <403 Forbidden>
    – Kite Hany
    Jul 16, 2019 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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