Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser #758

Closed
vinothkumar21 opened this issue Jul 14, 2020 · 3 comments

Comments

@vinothkumar21
Copy link

vinothkumar21 commented Jul 14, 2020

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser

Preconditions:

  1. PHP version 7.2.30
  2. Magento 2.3.4
  3. MFTF 2.6.3
  4. Selenium-server-standalone-3.141.59
  5. Chrome browser version: 83.0.4103.116

Steps to reproduce:
1.Setup a Magento and MFTF version
2.Setting environment credentials in dev/test/acceptance/.env
3.Running vendor/bin/mftf build:project
4.Running vendor/bin/mftf generate:tests
5.Run a simple test by run : mftf run:test StorefrontUpdateWishlistTest --remove

image

Expected result
MFTF-standalone can run a test with standard command line: bin/mftf run:test StorefrontUpdateWishlistTest --remove

Actual:
Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser' not found in C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php:76
Stack trace:
#0 C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php(43): Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent->guessFileMimeType('C:\Users\emb-vi...')
#1 C:\xampp\htdocs\Magento\vendor\allure-framework\allure-php-api\src\Yandex\Allure\Adapter\Event\AddAttachmentEvent.php(35): Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent->getAttachmentFileName(Object(PHPUnit\Framework\ExceptionWrapper), NULL)
#2 C:\xampp\htdocs\Magento\vendor\allure-framework\allure-php-api\src\Yandex\Allure\Adapter\Allure.php(116): Yandex\Allure\Adapter\Event\AddAttachmentEvent->process(Object(Yandex\Allure\Adapter\Mo in C:\xampp\htdocs\Magento\vendor\magento\magento2-functional-testing-framework\src\Magento\FunctionalTestingFramework\Allure\Event\AddUniqueAttachmentEvent.php on line 76

@m2-assistant
Copy link

m2-assistant bot commented Jul 14, 2020

Hi @vinothkumar21. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@jilu1
Copy link
Contributor

jilu1 commented Jul 27, 2020

@vinothkumar21 Can you please check if this is fixed in MFTF 2.6.4?

@jilu1
Copy link
Contributor

jilu1 commented Dec 15, 2020

@vinothkumar21
Feel free to reopen if you still has this issue.

@jilu1 jilu1 closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants