Questions tagged [mftf]

Questions related to the Magento Functional Testing Framework. Use this tag to distinguish from other testing methods in Magento 2.

Filter by
Sorted by
Tagged with
1 vote
0 answers
26 views

How to validate the Meta Title of any page using some Automated tests?

I am just wondering if we can validate the Meta title of a page using some automated tests like MFTF. Can someone please suggest to me if it is possible? Thanks
Abhinav's user avatar
  • 23
1 vote
0 answers
35 views

Magento 2.4.5 - p1 Getting error while executing MFTF testing with codecept using PHPStorm on XAMPP local

If anyone have idea then please share with me about codecept to execute MFTF I am getting below error PHP Fatal error: Uncaught Error: Undefined constant "Magento\FunctionalTestingFramework\...
Pawan Gajbhiye's user avatar
0 votes
0 answers
12 views

MFTF waitForElementVisible element does not found the image

I am facing issue with MFTF tests in finding the image using the below selector: //*[@class='product media']//img[contains(@src, '{{filename}}')] I can see the image is present with the name "...
Abhinav's user avatar
  • 23
0 votes
0 answers
14 views

Disable module for MFTF

A third-party module, Amasty common tests, breaks the generation of MFTF tests. The reason is the invalid format of some of the provided XML files. I disabled the module using the Magento command but ...
kotsios's user avatar
  • 13
1 vote
1 answer
289 views

How to create MFTF Testing for custom module in Magento 2.4.5

I have studied the MFTF documentation to create and test the custom module before submitting the extension to Magento Marketplace But it is difficult to understand how it works. Can you help me with ...
Japharul Alam's user avatar
1 vote
1 answer
302 views

MFTF(magento2): [Facebook\WebDriver\Exception\SessionNotCreatedException] Unable to create new service: ChromeDriverService

I am trying to hit the command {vendor/bin/mftf run:test AdminLoginSuccessfulTest} for mftf functional testing but I get this error :- Test tests/functional/Magento/_generated/default/...
Vikas Sharma's user avatar
0 votes
0 answers
172 views

Install MFTF Automation testing in Magento Version 2.4

I am trying to install MFTF automation testing in Magento's latest version 2.4. I am following the Magento basic documentation. In the Magento root directory, I run the command vendor/bin/mftf build: ...
Manoj Jarial's user avatar
0 votes
1 answer
175 views

MFTF Run test not passing

I have installed Magento 2.4.3-p1 in the Ubuntu Apache server, Completed installation (fresh installation), and configuration for acceptance test case credentials. When I try to execute the MFTF it is ...
Rajesh Baskaran's user avatar
3 votes
0 answers
193 views

How to create MFTF testing for custom module in magento 2.4.3-p1

Does marketplace add custom extension mftf (Magento Functional Testing Framework) fail how to solve this issue? Marketplace issue report : https://prnt.sc/22quodr ...
Ravindrasinh Zala's user avatar
2 votes
0 answers
128 views

MFTF Testing for custom module in magento 2.4.3

How to Test custom module using "MFTF" in Magento2.4.3 Recently I uploaded a custom module in the marketplace and the module reject-with these error:- I don't know how to resolve these ...
Ronak Rathod's user avatar
  • 6,259
1 vote
1 answer
64 views

MFTF Custom Helper get stepKey variable value

I'm trying to write a Custom Helper, according to https://devdocs.magento.com/mftf/docs/custom-helpers.html To perform Tax Calculations and return a Fee. According to documentation you can return a ...
Mediterranean1973's user avatar
1 vote
3 answers
539 views

MTFT: Invalid configuration value provided for "region"

I am trying to run the functional tests but it is returning an error: $ /vendor/bin/codecept run functional -c dev/tests/acceptance/codeception.yml Invalid configuration value provided for "...
viniciusbord9's user avatar
1 vote
0 answers
72 views

How to Perform MFTF test to Custom Module before submit to Marketplace in Magento 2

I have go through the MFTF documentation to create and test the custom module before submitting the extension to Magento Marketplace. But this is difficult to understand to work on it. Can some one ...
Magento007's user avatar
0 votes
0 answers
144 views

Magento 2 Getting error on updating an extension in the Magento Marketplace

i am getting this error on updating an extension in the magento marketplace. {"tool":"mftfmagento","status":"FAIL","reports":[{"php_version":...
mechanic's user avatar
  • 360
0 votes
0 answers
42 views

Configure MFTF in Magento 2

I have gone thruogh the Magnto doc for MFTF but not getting proper setup.Can any one help me on this.
rajat kara's user avatar
  • 1,209
3 votes
1 answer
1k views

Cannot run MFTF tests: Chromium started but does nothing

I installed MFTF and selenium accoring to https://devdocs.magento.com/mftf/docs/getting-started.html I run: $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-3.141.59.jar ...
Serhiy Shkolyarenko's user avatar
1 vote
1 answer
417 views

Magento2 :Unable to create new service: ChromeDriverService

I've been trying to implements functional testing in magento using mftf i followed the same steps from this documenation but i keep getting : [Facebook\WebDriver\Exception\UnknownErrorException] ...
Nisrine Hafi's user avatar
0 votes
1 answer
248 views

Selenium : Admin should be able to log into the Magento Admin backend successfully

I'm trying to run functional tests on my magento project following this tutorial i'm using selenium docker image by running this command : docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-...
Nisrine Hafi's user avatar
2 votes
1 answer
136 views

What are good debugging strategies for MFTF (v2) tests which only faily sometimes?

We have a MFTF test related to coupon codes that fail in 4 of 10 cases. How can we debug this properly. We already isolated the single test case and can reproduce it locally, it still takes 50 minutes ...
Alex's user avatar
  • 13.7k
0 votes
1 answer
31 views

Changed value in inline edit field can not be saved in MFTF test

In a custom admin grid I try to change a value in an inline edit field and save it afterwords using a MFTF test. I use AdminCustomerGridInlineEditorSection as template and select the inline edit field ...
norgeindian's user avatar
1 vote
0 answers
78 views

how can I set custom attribute value for entity (for product) in MFTF test

The selected customer attribute is not saving for created by MFTF product (https://prnt.sc/tqqy8m). Let me know please.
Vadim's user avatar
  • 11
1 vote
0 answers
76 views

Magneto MFTF setup is not working/ Throwing error Could not find ActionGroup by ref "ResetAdminDataGridToDefaultViewActionGroup" in Element

I struck while setting up my MFTFframework in my local environment, your help is much appreciated. I followed steps as per below url to setup MFTF but It is throwing error when i run mftf generate:...
chandra_9993's user avatar
0 votes
2 answers
991 views

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

I am using Magento 2.3.4 and MFTF 2.6.3. I have setup the MFTF by setting environment credentials in dev/test/acceptance/.env running vendor/bin/mftf build:project running vendor/bin/mftf generate:...
Dhruva's's user avatar
1 vote
0 answers
85 views

MFTF color console output

Please advice if there is a way to output in more pretty look MFTF execution in console. With comments, indentations, colors and other stuff. When I executed magento tests sometimes this magic ...
zhartaunik's user avatar
  • 3,848
7 votes
0 answers
640 views

Running a single MFTF test that is included within a suite

I am trying to only run the test StorefrontVerifySecureURLRedirectCheckout. To run it I am using the following command: vendor/bin/mftf run:test StorefrontVerifySecureURLRedirectCheckout -k (I have to ...
Daniel's user avatar
  • 2,199
1 vote
1 answer
155 views

How to find core test names to generate specific tests

I am trying to run MFTF tests only for Checkout. In the DevDocs there are various examples how to generate and run specific tests(MFTF - Getting started - Step 4 - Run a simple test, Generate tests ...
Daniel's user avatar
  • 2,199
1 vote
2 answers
2k views

Error More than one node matching the query when running custom MFTF Test

When running my custom mftf test, I get the error More than one node matching the query: /entities/entity/requiredEntity[@type='custom_attribute_array'].Exception occurred parsing action at StepKey "...
norgeindian's user avatar
0 votes
0 answers
347 views

Can not run vendor/bin/mftf generate:tests on Command line in Magento 2.3

When I run this command line vendor/bin/mftf generate:tests in Magento root it shows me an error : in ModuleReSovlver.php line 444: Could not retrieve API from Magento instance <403 Forbidden> ...
Kite Hany's user avatar
  • 235
3 votes
0 answers
131 views

How can run MFTF in parallel?

Is it possibe to run MFTF in parallel? If yes, could you guide me or show me documens related that? Thanks All
Viet Le's user avatar
  • 31
2 votes
1 answer
90 views

How do I access a child entity field for reference in an MFTF Test

I need assistance trying to access a field of a required entity inside a parent entity created for a test Example I am trying to create a configurable product <createData entity="...
Jason Jewel's user avatar
0 votes
1 answer
2k views

PHP Fatal error: Class Mock_LoggerInterface contains 8 abstract >methods and must therefore be declared abstract or implement the remaining

Preconditions (*) Magento 2.3.1 upgraded from Magento 2.3.0 Php 7.2.15 OS : Ubuntu 18.04 Bionic Phpstorm 2019.1.1 Evnironemnt : Magento development PHPUnit 6.5.0 magento/magento2-functional-testing-...
PhantomS's user avatar
  • 503
4 votes
1 answer
3k views

Error: Class "Yandex\Allure\Adapter\AllureAdapter" does not exist

Preconditions (*) Magento 2.3.1 upgraded from Magento 2.3.0 Php 7.2.15 OS : Ubuntu 18.04 Bionic Phpstorm 2019.1.1 Evnironemnt : Magento development Steps to reproduce (*) Issue appears after ...
PhantomS's user avatar
  • 503
1 vote
1 answer
306 views

Magento 2.3.1 MFTF command error Permissin denied

I am working on the MFTF concept in Magento 2.3 community version. I am trying to run commands like vendor/bin/mftf --version and vendor/bin/mftf build:project, but getting error every time as: -"...
chanchal's user avatar
  • 407
5 votes
3 answers
2k views

MFTF stand alone - Could not retrieve API token from Magento Instance (302 Found) error

I installed MFTF stand alone and have a magento instance. Just following the getting started document before I write tests of my own. When generated/run the test it gives error - Could not retrieve ...
Jaya's user avatar
  • 51
2 votes
0 answers
59 views

Getting undefined index sampleData when trying to use generate:tests command in MFTF

I am working to use MFTF, it went well upto build:project and changes in .env file but when trying to generate tests I am getting ERROR Undefined index: SampleData in C:\xampp2\htdocs\magento2\dev\...
Hemant Kumar's user avatar