cancel
Showing results for 
Search instead for 
Did you mean: 

Error in mftf tests

Error in mftf tests

Getting mftf error after submitting.

When I try running locally (on windows)

mftf run:test AdminLoginSuccessfulTest --remove

I am getting 

[Exception]
File or path C not found

Any ideas how to fix it?

2 REPLIES 2

Re: Error in mftf tests

Hello @Instant Search + 

 

Check Your Path Configuration

Verify the MFTF directory is properly set in your mftf.yaml file.

Check the MAGENTO_BASE_URL in your mftf.env file to ensure it points to the correct local instance.

 

Check PHP and Composer Versions

PHP: Magento 2.4.6 requires PHP 8.1.

Composer: Ensure you have the latest Composer version.

 

Ensure MFTF is Installed Correctly

composer require magento/magento2-functional-testing-framework --dev
vendor/bin/mftf generate:tests

 

Correct the MFTF Command Syntax

If you’re running tests on Windows, replace the vendor/bin/mftf path with vendor\bin\mftf.bat:

vendor\bin\mftf.bat run:test AdminLoginSuccessfulTest --remove

 

 

 

Hope it helps ! 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9

Re: Error in mftf tests

you're encountering an issue where MFTF (Magento Functional Testing Framework) is unable to find a file or path when trying to run the test locally on Windows, resulting in the error "[Exception] File or path C not found." To resolve this, first check the file path to ensure it's correct and the AdminLoginSuccessfulTest file exists. You could also try running the test with the full file path instead of the relative one. Additionally, verify that your local environment is set up correctly for MFTF by confirming all dependencies are in place. Checking permissions, clearing Magento's cache, and rebuilding the project may also help. If the issue persists, consider updating your MFTF version or consult resources like the Kubernetes Dashboard for containerized management of your testing environment.